Re: [PATCH] netfilter: xt_conntrack: fix inverted conntrack direction test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04.04.2011 16:19, Florian Westphal wrote:
> --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

Applied, thanks Florian.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux