···7979 /* Print out the private part of the conntrack. */8080 void (*print_conntrack)(struct seq_file *s, struct nf_conn *);8181#endif8282- unsigned int *net_id;8282+8383 /* Init l4proto pernet data */8484 int (*init_net)(struct net *net);8585
+2-6
net/netfilter/nf_conntrack_proto.c
···163163static struct nf_proto_net *nf_ct_l4proto_net(struct net *net,164164 const struct nf_conntrack_l4proto *l4proto)165165{166166- if (l4proto->get_net_proto) {167167- /* statically built-in protocols use static per-net */166166+ if (l4proto->get_net_proto)168167 return l4proto->get_net_proto(net);169169- } else if (l4proto->net_id) {170170- /* ... and loadable protocols use dynamic per-net */171171- return net_generic(net, *l4proto->net_id);172172- }168168+173169 return NULL;174170}175171