Florian Westphal
96120d86fe
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>
2011-04-04 17:06:21 +02:00
..
2011-04-04 15:19:25 +02:00
2011-04-04 15:25:18 +02:00
2011-02-19 19:17:35 -08:00
2011-04-04 17:01:43 +02:00
2011-03-15 20:16:20 +01:00
2011-01-18 18:12:24 +01:00
2011-03-15 13:03:27 -07:00
2011-02-01 16:06:30 +01:00
2011-01-14 15:45:56 +01:00
2011-04-04 15:21:02 +02:00
2011-04-04 17:00:54 +02:00
2011-01-14 15:45:56 +01:00
2011-01-18 18:12:24 +01:00
2011-02-04 14:28:58 -08:00
2011-02-28 18:02:33 +01:00
2011-01-18 18:12:24 +01:00
2011-01-19 19:10:49 +01:00
2011-01-19 16:00:07 +01:00
2011-03-03 21:27:42 -08:00
2011-01-18 16:08:30 +01:00
2011-02-17 11:32:38 +01:00
2011-02-15 21:59:37 +01:00
2011-01-18 15:27:28 +01:00
2011-03-14 19:11:44 +01:00
2011-04-04 17:01:43 +02:00
2011-03-16 18:32:13 +01:00
2011-03-15 13:26:32 +01:00
2011-04-04 17:06:21 +02:00
2011-01-18 06:33:54 +01:00
2011-02-03 00:05:43 +01:00
2011-01-18 06:33:54 +01:00
2011-02-04 14:28:58 -08:00
2011-01-13 10:30:27 +09:00
2011-01-18 06:33:54 +01:00
2011-01-18 16:08:30 +01:00
2011-02-01 15:56:00 +01:00
2011-02-17 11:32:38 +01:00
2011-04-04 17:00:54 +02:00
2011-03-12 15:08:54 -08:00
2011-02-17 11:32:38 +01:00