]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_ct_tcp: merge tcpv[4,6]_net_init into tcp_net_init
authorGao feng <gaofeng@cn.fujitsu.com>
Thu, 21 Jun 2012 04:36:43 +0000 (04:36 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Jun 2012 17:05:05 +0000 (19:05 +0200)
commit12e3eee68d12109660001b1658f82a8b20fb9793
tree8951a9d5453c97c0b57e589824daeb22dc6362c1
parent18537eeb11c0b283fe515a26c85d41966c133049
netfilter: nf_ct_tcp: merge tcpv[4,6]_net_init into tcp_net_init

Merge tcpv4_net_init and tcpv6_net_init into tcp_net_init to
remove redundant code now that we have the u_int16_t proto
parameter.

And use nf_proto_net.users to identify if it's the first time
we use the nf_proto_net, in that case, we initialize it.

Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_tcp.c