]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: restore POST_ROUTING hook in NF_HOOK_COND
authorPatrick McHardy <kaber@trash.net>
Fri, 19 Feb 2010 07:03:28 +0000 (08:03 +0100)
committerPatrick McHardy <kaber@trash.net>
Fri, 19 Feb 2010 07:03:28 +0000 (08:03 +0100)
commitb90f05199aa65cf0e5936f05d02f3f06eaa749c7
tree3a528ddf792daea358d00d20e1065b6ed5bab30c
parenta9ef911b15084c508451f0ba3882d12eab2d7376
netfilter: restore POST_ROUTING hook in NF_HOOK_COND

Commit 98cb9f5 ("netfilter: get rid of the grossness in netfilter.h")
inverted the logic for conditional hook invocation, breaking the
POST_ROUTING hook invoked by ip_output().

Correct the logic and remove an unnecessary initialization.

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter.h