From: Florian Westphal Date: Fri, 27 Apr 2018 05:45:41 +0000 (+0200) Subject: ebtables-translate: turn off useless compat queries X-Git-Tag: v1.8.0~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0956ce04bdfa1bd8e998a659795a2f37481b0b6;p=thirdparty%2Fiptables.git 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 --- 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");