From: Phil Sutter Date: Wed, 19 Sep 2018 13:16:49 +0000 (+0200) Subject: libxt_conntrack: Version 0 does not support XT_CONNTRACK_DIRECTION X-Git-Tag: v1.8.1~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74eb2395c838460384286c2b95f711ae275a46cb;p=thirdparty%2Fiptables.git libxt_conntrack: Version 0 does not support XT_CONNTRACK_DIRECTION Since sinfo->flags is only 8 bytes large, checking for XT_CONNTRACK_DIRECTION bit (which has value 1 << 12) will always return false, so drop this dead code. Fixes: c7fc1dae1e8f8 ("libxt_conntrack: dump ctdir") Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- diff --git a/extensions/libxt_conntrack.c b/extensions/libxt_conntrack.c index 72c52200..f1bc8f45 100644 --- a/extensions/libxt_conntrack.c +++ b/extensions/libxt_conntrack.c @@ -774,14 +774,6 @@ matchinfo_print(const void *ip, const struct xt_entry_match *match, int numeric, else printf("%lu:%lu", sinfo->expires_min, sinfo->expires_max); } - - if (sinfo->flags & XT_CONNTRACK_DIRECTION) { - if (sinfo->invflags & XT_CONNTRACK_DIRECTION) - printf(" %sctdir REPLY", optpfx); - else - printf(" %sctdir ORIGINAL", optpfx); - } - } static void