netfilter: xt_CT: refactorize xt_ct_tg_check
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 28 Aug 2012 00:53:14 +0000 (00:53 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 3 Sep 2012 11:32:48 +0000 (13:32 +0200)
commit236df005614bea6a2f9afa9867e3bdfc206c6291
tree89bbe58ab9299a508589775f8ad184223889af7c
parent6703aa74ad1ba2e598bb49a37f7518da1195bacb
netfilter: xt_CT: refactorize xt_ct_tg_check

This patch adds xt_ct_set_helper and xt_ct_set_timeout to reduce
the size of xt_ct_tg_check.

This aims to improve code mantainability by splitting xt_ct_tg_check
in smaller chunks.

Suggested by Eric Dumazet.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_CT.c