]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
m_xt: stop using xtables_set_revision()
authorMike Frysinger <vapier@gentoo.org>
Sun, 21 Nov 2010 21:16:54 +0000 (16:16 -0500)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Tue, 30 Nov 2010 17:48:38 +0000 (09:48 -0800)
iptables dropped the xtables_set_revision() function around version 1.4.9,
so set the rev directly ourselves.  This should be compatible back to the
original version m_xt itself is designed for.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
tc/m_xt.c

index bfc49371f35c5962ee99a329e9e4d9c5857e5760..ede99132578d6a68cc02443809df1197f83c70af 100644 (file)
--- a/tc/m_xt.c
+++ b/tc/m_xt.c
@@ -88,7 +88,7 @@ build_st(struct xtables_target *target, struct xt_entry_target *t)
                target->t = xtables_calloc(1, size);
                target->t->u.target_size = size;
                strcpy(target->t->u.user.name, target->name);
-               xtables_set_revision(target->t->u.user.name, target->revision);
+               target->t->u.user.revision = target->revision;
 
                if (target->init != NULL)
                        target->init(target->t);