diff options
author | Florian Westphal <fw@strlen.de> | 2018-04-27 07:45:41 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-04-27 12:59:35 +0200 |
commit | a0956ce04bdfa1bd8e998a659795a2f37481b0b6 (patch) | |
tree | dc82ec2a5dae86504ec0fbaa083454fc9c4fdb64 | |
parent | 98408697fd8505bc8337d1e03b0e2f0374e4f36a (diff) |
ebtables-translate: turn off useless compat queries
not needed as we won't be installing any rules.
So just assume kernel supports everything.
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | iptables/xtables-eb-translate.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/iptables/xtables-eb-translate.c b/iptables/xtables-eb-translate.c index 8547a34a..42db2d01 100644 --- a/iptables/xtables-eb-translate.c +++ b/iptables/xtables-eb-translate.c @@ -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"); |