]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_ct_sctp: merge sctpv[4,6]_net_init into sctp_net_init
authorGao feng <gaofeng@cn.fujitsu.com>
Thu, 21 Jun 2012 04:36:46 +0000 (04:36 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Jun 2012 17:13:31 +0000 (19:13 +0200)
commitebc3ad61dc251277aa2f02d10c1d273c74a042d8
tree6e20a6f9b6493f83169a1be0d9fdf91f1aea1e11
parent42a8903ac40c327f772fde4223e0413e2a9644b2
netfilter: nf_ct_sctp: merge sctpv[4,6]_net_init into sctp_net_init

Merge sctpv4_net_init and sctpv6_net_init into sctp_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 i

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