Lines Matching refs:net
4 #include <net/net_namespace.h>
5 #include <net/xfrm.h>
7 static void __net_init __xfrm_sysctl_init(struct net *net)
9 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME;
10 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE;
11 net->xfrm.sysctl_larval_drop = 1;
12 net->xfrm.sysctl_acq_expires = 30;
44 int __net_init xfrm_sysctl_init(struct net *net)
49 __xfrm_sysctl_init(net);
54 table[0].data = &net->xfrm.sysctl_aevent_etime;
55 table[1].data = &net->xfrm.sysctl_aevent_rseqth;
56 table[2].data = &net->xfrm.sysctl_larval_drop;
57 table[3].data = &net->xfrm.sysctl_acq_expires;
60 if (net->user_ns != &init_user_ns) {
65 net->xfrm.sysctl_hdr = register_net_sysctl_sz(net, "net/core", table,
67 if (!net->xfrm.sysctl_hdr)
77 void __net_exit xfrm_sysctl_fini(struct net *net)
81 table = net->xfrm.sysctl_hdr->ctl_table_arg;
82 unregister_net_sysctl_table(net->xfrm.sysctl_hdr);
86 int __net_init xfrm_sysctl_init(struct net *net)
88 __xfrm_sysctl_init(net);