diff options
author | Florian Westphal <fw@strlen.de> | 2011-04-04 17:06:21 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-04-04 17:06:21 +0200 |
commit | 96120d86fe302c006259baee9061eea9e1b9e486 (patch) | |
tree | 2fa6e56f389431dfb84609d3d7572cad76e88e71 /include | |
parent | b7225041e93f81e7e38fcdf27fc82044e7695efd (diff) | |
download | linux-96120d86fe302c006259baee9061eea9e1b9e486.tar.gz linux-96120d86fe302c006259baee9061eea9e1b9e486.tar.bz2 linux-96120d86fe302c006259baee9061eea9e1b9e486.zip |
netfilter: xt_conntrack: fix inverted conntrack direction test
--ctdir ORIGINAL matches REPLY packets, and vv:
userspace sets "invert_flags &= ~XT_CONNTRACK_DIRECTION" in ORIGINAL
case.
Thus: (CTINFO2DIR(ctinfo) == IP_CT_DIR_ORIGINAL) ^
!!(info->invert_flags & XT_CONNTRACK_DIRECTION))
yields "1 ^ 0", which is true -> returns false.
Reproducer:
iptables -I OUTPUT 1 -p tcp --syn -m conntrack --ctdir ORIGINAL
Signed-off-by: Florian Westphal <fwestphal@astaro.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions