netfilter: conntrack: remove unused proto arg from netns init functions
Its unused, next patch will remove l4proto->l3proto number to simplify l4 protocol demuxer lookup. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
6fe78fa484
commit
ca2ca6e1c0
|
@ -84,7 +84,7 @@ struct nf_conntrack_l4proto {
|
||||||
#endif
|
#endif
|
||||||
unsigned int *net_id;
|
unsigned int *net_id;
|
||||||
/* Init l4proto pernet data */
|
/* Init l4proto pernet data */
|
||||||
int (*init_net)(struct net *net, u_int16_t proto);
|
int (*init_net)(struct net *net);
|
||||||
|
|
||||||
/* Return the per-net protocol part. */
|
/* Return the per-net protocol part. */
|
||||||
struct nf_proto_net *(*get_net_proto)(struct net *net);
|
struct nf_proto_net *(*get_net_proto)(struct net *net);
|
||||||
|
|
|
@ -274,7 +274,7 @@ int nf_ct_l4proto_pernet_register_one(struct net *net,
|
||||||
struct nf_proto_net *pn = NULL;
|
struct nf_proto_net *pn = NULL;
|
||||||
|
|
||||||
if (l4proto->init_net) {
|
if (l4proto->init_net) {
|
||||||
ret = l4proto->init_net(net, l4proto->l3proto);
|
ret = l4proto->init_net(net);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
@ -988,8 +988,7 @@ int nf_conntrack_proto_pernet_init(struct net *net)
|
||||||
struct nf_proto_net *pn = nf_ct_l4proto_net(net,
|
struct nf_proto_net *pn = nf_ct_l4proto_net(net,
|
||||||
&nf_conntrack_l4proto_generic);
|
&nf_conntrack_l4proto_generic);
|
||||||
|
|
||||||
err = nf_conntrack_l4proto_generic.init_net(net,
|
err = nf_conntrack_l4proto_generic.init_net(net);
|
||||||
nf_conntrack_l4proto_generic.l3proto);
|
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
err = nf_ct_l4proto_register_sysctl(net,
|
err = nf_ct_l4proto_register_sysctl(net,
|
||||||
|
|
|
@ -812,7 +812,7 @@ static int dccp_kmemdup_sysctl_table(struct net *net, struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dccp_init_net(struct net *net, u_int16_t proto)
|
static int dccp_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_dccp_net *dn = dccp_pernet(net);
|
struct nf_dccp_net *dn = dccp_pernet(net);
|
||||||
struct nf_proto_net *pn = &dn->pn;
|
struct nf_proto_net *pn = &dn->pn;
|
||||||
|
|
|
@ -136,7 +136,7 @@ static int generic_kmemdup_sysctl_table(struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int generic_init_net(struct net *net, u_int16_t proto)
|
static int generic_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_generic_net *gn = generic_pernet(net);
|
struct nf_generic_net *gn = generic_pernet(net);
|
||||||
struct nf_proto_net *pn = &gn->pn;
|
struct nf_proto_net *pn = &gn->pn;
|
||||||
|
|
|
@ -329,7 +329,7 @@ gre_timeout_nla_policy[CTA_TIMEOUT_GRE_MAX+1] = {
|
||||||
};
|
};
|
||||||
#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */
|
#endif /* CONFIG_NF_CONNTRACK_TIMEOUT */
|
||||||
|
|
||||||
static int gre_init_net(struct net *net, u_int16_t proto)
|
static int gre_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct netns_proto_gre *net_gre = gre_pernet(net);
|
struct netns_proto_gre *net_gre = gre_pernet(net);
|
||||||
int i;
|
int i;
|
||||||
|
|
|
@ -332,7 +332,7 @@ static int icmp_kmemdup_sysctl_table(struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int icmp_init_net(struct net *net, u_int16_t proto)
|
static int icmp_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_icmp_net *in = icmp_pernet(net);
|
struct nf_icmp_net *in = icmp_pernet(net);
|
||||||
struct nf_proto_net *pn = &in->pn;
|
struct nf_proto_net *pn = &in->pn;
|
||||||
|
|
|
@ -343,7 +343,7 @@ static int icmpv6_kmemdup_sysctl_table(struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int icmpv6_init_net(struct net *net, u_int16_t proto)
|
static int icmpv6_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_icmp_net *in = icmpv6_pernet(net);
|
struct nf_icmp_net *in = icmpv6_pernet(net);
|
||||||
struct nf_proto_net *pn = &in->pn;
|
struct nf_proto_net *pn = &in->pn;
|
||||||
|
|
|
@ -734,7 +734,7 @@ static int sctp_kmemdup_sysctl_table(struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int sctp_init_net(struct net *net, u_int16_t proto)
|
static int sctp_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_sctp_net *sn = sctp_pernet(net);
|
struct nf_sctp_net *sn = sctp_pernet(net);
|
||||||
struct nf_proto_net *pn = &sn->pn;
|
struct nf_proto_net *pn = &sn->pn;
|
||||||
|
|
|
@ -1506,7 +1506,7 @@ static int tcp_kmemdup_sysctl_table(struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tcp_init_net(struct net *net, u_int16_t proto)
|
static int tcp_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_tcp_net *tn = tcp_pernet(net);
|
struct nf_tcp_net *tn = tcp_pernet(net);
|
||||||
struct nf_proto_net *pn = &tn->pn;
|
struct nf_proto_net *pn = &tn->pn;
|
||||||
|
|
|
@ -290,7 +290,7 @@ static int udp_kmemdup_sysctl_table(struct nf_proto_net *pn,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int udp_init_net(struct net *net, u_int16_t proto)
|
static int udp_init_net(struct net *net)
|
||||||
{
|
{
|
||||||
struct nf_udp_net *un = udp_pernet(net);
|
struct nf_udp_net *un = udp_pernet(net);
|
||||||
struct nf_proto_net *pn = &un->pn;
|
struct nf_proto_net *pn = &un->pn;
|
||||||
|
|
Loading…
Reference in New Issue