]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
ebtables-translate: turn off useless compat queries
authorFlorian Westphal <fw@strlen.de>
Fri, 27 Apr 2018 05:45:41 +0000 (07:45 +0200)
committerFlorian Westphal <fw@strlen.de>
Fri, 27 Apr 2018 10:59:35 +0000 (12:59 +0200)
not needed as we won't be installing any rules.
So just assume kernel supports everything.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-eb-translate.c

index 8547a34aab4d7edf7c53b3227e3b419e69203a7a..42db2d01ff496dd3d8c0df6372415077ca4f5757 100644 (file)
@@ -775,6 +775,11 @@ check_extension:
        return ret;
 }
 
+static int dummy_compat_rev(const char *name, uint8_t rev, int opt)
+{
+       return 1;
+}
+
 int xtables_eb_xlate_main(int argc, char *argv[])
 {
        int ret;
@@ -792,6 +797,7 @@ int xtables_eb_xlate_main(int argc, char *argv[])
                exit(EXIT_FAILURE);
        }
 
+       ebtables_globals.compat_rev = dummy_compat_rev;
        ret = do_commandeb_xlate(&h, argc, argv, &table);
        if (!ret)
                fprintf(stderr, "Translation not implemented\n");