summaryrefslogtreecommitdiff
path: root/include/net/netfilter
diff options
context:
space:
mode:
authorGao feng <gaofeng@cn.fujitsu.com>2012-06-21 04:36:39 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2012-06-27 18:31:14 +0200
commitf1caad274515ffd9841ac57ce9a7b5fc35bbf689 (patch)
treec0ba792ccbf5c6edb626240248dea904c21f7639 /include/net/netfilter
parentfa0f61f05e401a3295b6486df67bb3f9d5f24a94 (diff)
downloadlinux-3.10-f1caad274515ffd9841ac57ce9a7b5fc35bbf689.tar.gz
linux-3.10-f1caad274515ffd9841ac57ce9a7b5fc35bbf689.tar.bz2
linux-3.10-f1caad274515ffd9841ac57ce9a7b5fc35bbf689.zip
netfilter: nf_conntrack: prepare l4proto->init_net cleanup
l4proto->init contain quite redundant code. We can simplify this by adding a new parameter l3proto. This patch prepares that code simplification. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter')
-rw-r--r--include/net/netfilter/nf_conntrack_l4proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_conntrack_l4proto.h b/include/net/netfilter/nf_conntrack_l4proto.h
index 81c52b5205f..5dd60f2d02a 100644
--- a/include/net/netfilter/nf_conntrack_l4proto.h
+++ b/include/net/netfilter/nf_conntrack_l4proto.h
@@ -97,7 +97,7 @@ struct nf_conntrack_l4proto {
#endif
int *net_id;
/* Init l4proto pernet data */
- int (*init_net)(struct net *net);
+ int (*init_net)(struct net *net, u_int16_t proto);
/* Protocol name */
const char *name;