From 74eb2395c838460384286c2b95f711ae275a46cb Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Wed, 19 Sep 2018 15:16:49 +0200 Subject: 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 --- extensions/libxt_conntrack.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'extensions') 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 -- cgit v1.2.3