Lines Matching full:net
4 #include <net/net_namespace.h>
5 #include <net/xfrm.h>
7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument
9 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; in __xfrm_sysctl_init()
10 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; in __xfrm_sysctl_init()
11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init()
12 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init()
43 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument
48 __xfrm_sysctl_init(net); in xfrm_sysctl_init()
53 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init()
54 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init()
55 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init()
56 table[3].data = &net->xfrm.sysctl_acq_expires; in xfrm_sysctl_init()
59 if (net->user_ns != &init_user_ns) in xfrm_sysctl_init()
62 net->xfrm.sysctl_hdr = register_net_sysctl_sz(net, "net/core", table, in xfrm_sysctl_init()
64 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init()
74 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini() argument
78 table = net->xfrm.sysctl_hdr->ctl_table_arg; in xfrm_sysctl_fini()
79 unregister_net_sysctl_table(net->xfrm.sysctl_hdr); in xfrm_sysctl_fini()
83 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument
85 __xfrm_sysctl_init(net); in xfrm_sysctl_init()