netfilter: cttimeout: use nf_ct_iterate_cleanup_net to unlink timeout objs
authorLiping Zhang <zlpnobody@gmail.com>
Sun, 28 May 2017 14:37:19 +0000 (22:37 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 29 May 2017 10:46:24 +0000 (12:46 +0200)
commit34158151d2aa1138983bedb59e5b711d2e25c245
treef6becd6e25e45775e24483088236f61c3805e536
parentff1acc4964ccde61a4134c789314593d40dd3c93
netfilter: cttimeout: use nf_ct_iterate_cleanup_net to unlink timeout objs

Similar to nf_conntrack_helper, we can use nf_ct_iterare_cleanup_net 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/nfnetlink_cttimeout.c