aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/xt_state.c
diff options
context:
space:
mode:
authorGao Feng <fgao@ikuai8.com>2017-04-13 09:35:49 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2017-04-15 11:43:49 +0200
commit6e354a5e565110c3a0eb7da3788340d4809a42b6 (patch)
tree6b0dcd1febc964a1afe5afc7821f02a641b3d459 /net/netfilter/xt_state.c
parentnetfilter: nf_nat: Fix return NF_DROP in nfnetlink_parse_nat_setup (diff)
downloadlinux-dev-6e354a5e565110c3a0eb7da3788340d4809a42b6.tar.xz
linux-dev-6e354a5e565110c3a0eb7da3788340d4809a42b6.zip
netfilter: ecache: Refine the nf_ct_deliver_cached_events
1. Remove single !events condition check to deliver the missed event even though there is no new event happened. Consider this case: 1) nf_ct_deliver_cached_events is invoked at the first time, the event is failed to deliver, then the missed is set. 2) nf_ct_deliver_cached_events is invoked again, but there is no any new event happened. The missed event is lost really. It would try to send the missed event again after remove this check. And it is ok if there is no missed event because the latter check !((events | missed) & e->ctmask) could avoid it. 2. Correct the return value check of notify->fcn. When send the event successfully, it returns 0, not postive value. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/xt_state.c')
0 files changed, 0 insertions, 0 deletions