Fix iptables-test to work with iptables 1.4.9
authorRobert Piasek <dagger@gentoo.org>
Thu, 19 Aug 2010 20:02:44 +0000 (21:02 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 20 Aug 2010 01:15:34 +0000 (03:15 +0200)
Starting with version 1.4.9 iptables dropped xtables_set_revision
function. This patch removes any use of it.

tools/iptables-test.c

index 1f3235c..b97c520 100644 (file)
@@ -110,7 +110,7 @@ static struct ipt_entry *build_quota_drop_entry(void)
                return NULL;
        m->m->u.match_size = match_size;
        strcpy(m->m->u.user.name, m->name);
-       xtables_set_revision(m->m->u.user.name, m->revision);
+       m->m->u.user.revision = m->revision;
        if (m->init != NULL)
                m->init(m->m);
 
@@ -125,7 +125,7 @@ static struct ipt_entry *build_quota_drop_entry(void)
        t->t = xtables_calloc(1, target_size);
        t->t->u.target_size = target_size;
        strcpy(t->t->u.user.name, "DROP");
-       xtables_set_revision(t->t->u.user.name, t->revision);
+       t->t->u.user.revision = t->revision;
        if (t->init != NULL)
                t->init(t->t);