]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxt_conntrack: Version 0 does not support XT_CONNTRACK_DIRECTION
authorPhil Sutter <phil@nwl.cc>
Wed, 19 Sep 2018 13:16:49 +0000 (15:16 +0200)
committerFlorian Westphal <fw@strlen.de>
Mon, 24 Sep 2018 09:23:59 +0000 (11:23 +0200)
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 <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
extensions/libxt_conntrack.c

index 72c522004a7ea405a711567b6d643fe865b9581e..f1bc8f453092bb341694ac734e8f91771f767756 100644 (file)
@@ -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