]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: nf_ct_helper: use nf_ct_iterate_destroy to unlink helper objs
authorLiping Zhang <zlpnobody@gmail.com>
Sun, 28 May 2017 14:35:52 +0000 (22:35 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 10:46:23 +0000 (12:46 +0200)
commitff1acc4964ccde61a4134c789314593d40dd3c93
tree684fe479ca4af206ba674b9d5fdf841017b211f4
parent446a8268b7f56830d8c7b562718ba9dc113ab3c1
netfilter: nf_ct_helper: use nf_ct_iterate_destroy to unlink helper objs

When we unlink the helper objects, we will iterate the nf_conntrack_hash,
iterate the unconfirmed list, handle the hash resize situation, etc.

Actually this logic is same as the nf_ct_iterate_destroy, so we can use
it to remove these copy & paste code.

Signed-off-by: Liping Zhang <zlpnobody@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_helper.c