/net/8021q/ |
H A D | vlanproc.h | 5 struct net; 7 int vlan_proc_init(struct net *net); 10 void vlan_proc_cleanup(struct net *net); 14 #define vlan_proc_init(net) (0) 15 #define vlan_proc_cleanup(net) do {} while (0)
|
/net/xfrm/ |
H A D | xfrm_sysctl.c | 3 #include <net/net_namespace.h> 4 #include <net/xfrm.h> 6 static void __net_init __xfrm_sysctl_init(struct net *net) argument 8 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; 9 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; 10 net->xfrm.sysctl_larval_drop = 1; 11 net->xfrm.sysctl_acq_expires = 30; 43 int __net_init xfrm_sysctl_init(struct net *net) argument 72 xfrm_sysctl_fini(struct net *net) argument 81 xfrm_sysctl_init(struct net *net) argument [all...] |
/net/netfilter/ |
H A D | nf_conntrack_timestamp.c | 14 #include <net/netfilter/nf_conntrack.h> 15 #include <net/netfilter/nf_conntrack_extend.h> 16 #include <net/netfilter/nf_conntrack_timestamp.h> 43 static int nf_conntrack_tstamp_init_sysctl(struct net *net) argument 52 table[0].data = &net->ct.sysctl_tstamp; 55 if (net->user_ns != &init_user_ns) 58 net->ct.tstamp_sysctl_header = register_net_sysctl(net, "net/netfilte 72 nf_conntrack_tstamp_fini_sysctl(struct net *net) argument 81 nf_conntrack_tstamp_init_sysctl(struct net *net) argument 86 nf_conntrack_tstamp_fini_sysctl(struct net *net) argument 91 nf_conntrack_tstamp_pernet_init(struct net *net) argument 97 nf_conntrack_tstamp_pernet_fini(struct net *net) argument [all...] |
H A D | nf_conntrack_acct.c | 17 #include <net/netfilter/nf_conntrack.h> 18 #include <net/netfilter/nf_conntrack_extend.h> 19 #include <net/netfilter/nf_conntrack_acct.h> 61 static int nf_conntrack_acct_init_sysctl(struct net *net) argument 70 table[0].data = &net->ct.sysctl_acct; 73 if (net->user_ns != &init_user_ns) 76 net->ct.acct_sysctl_header = register_net_sysctl(net, "net/netfilte 90 nf_conntrack_acct_fini_sysctl(struct net *net) argument 99 nf_conntrack_acct_init_sysctl(struct net *net) argument 104 nf_conntrack_acct_fini_sysctl(struct net *net) argument 109 nf_conntrack_acct_pernet_init(struct net *net) argument 115 nf_conntrack_acct_pernet_fini(struct net *net) argument [all...] |
H A D | nf_conntrack_ecache.c | 5 * (C) 2005 Patrick McHardy <kaber@trash.net> 26 #include <net/netfilter/nf_conntrack.h> 27 #include <net/netfilter/nf_conntrack_core.h> 28 #include <net/netfilter/nf_conntrack_extend.h> 36 struct net *net = nf_ct_net(ct); local 44 notify = rcu_dereference(net->ct.nf_conntrack_event_cb); 86 int nf_conntrack_register_notifier(struct net *net, argument 93 notify = rcu_dereference_protected(net 108 nf_conntrack_unregister_notifier(struct net *net, struct nf_ct_event_notifier *new) argument 122 nf_ct_expect_register_notifier(struct net *net, struct nf_exp_event_notifier *new) argument 144 nf_ct_expect_unregister_notifier(struct net *net, struct nf_exp_event_notifier *new) argument 189 nf_conntrack_event_init_sysctl(struct net *net) argument 219 nf_conntrack_event_fini_sysctl(struct net *net) argument 228 nf_conntrack_event_init_sysctl(struct net *net) argument 233 nf_conntrack_event_fini_sysctl(struct net *net) argument 238 nf_conntrack_ecache_pernet_init(struct net *net) argument 245 nf_conntrack_ecache_pernet_fini(struct net *net) argument [all...] |
H A D | nf_conntrack_standalone.c | 3 * (C) 2005-2012 Patrick McHardy <kaber@trash.net> 20 #include <net/net_namespace.h> 25 #include <net/netfilter/nf_conntrack.h> 26 #include <net/netfilter/nf_conntrack_core.h> 27 #include <net/netfilter/nf_conntrack_l3proto.h> 28 #include <net/netfilter/nf_conntrack_l4proto.h> 29 #include <net/netfilter/nf_conntrack_expect.h> 30 #include <net/netfilter/nf_conntrack_helper.h> 31 #include <net/netfilter/nf_conntrack_acct.h> 32 #include <net/netfilte 56 struct net *net = seq_file_net(seq); local 73 struct net *net = seq_file_net(seq); local 275 struct net *net = seq_file_net(seq); local 293 struct net *net = seq_file_net(seq); local 312 struct net *net = seq_file_net(seq); local 366 nf_conntrack_standalone_init_proc(struct net *net) argument 386 nf_conntrack_standalone_fini_proc(struct net *net) argument 392 nf_conntrack_standalone_init_proc(struct net *net) argument 397 nf_conntrack_standalone_fini_proc(struct net *net) argument 472 nf_conntrack_standalone_init_sysctl(struct net *net) argument 502 nf_conntrack_standalone_fini_sysctl(struct net *net) argument 511 nf_conntrack_standalone_init_sysctl(struct net *net) argument 516 nf_conntrack_standalone_fini_sysctl(struct net *net) argument 521 nf_conntrack_pernet_init(struct net *net) argument 551 struct net *net; local [all...] |
H A D | nf_log.c | 8 #include <net/protocol.h> 9 #include <net/netfilter/nf_log.h> 34 void nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) argument 42 log = rcu_dereference_protected(net->nf.nf_loggers[pf], 45 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); 51 void nf_log_unset(struct net *net, const struct nf_logger *logger) argument 58 log = rcu_dereference_protected(net->nf.nf_loggers[i], 61 RCU_INIT_POINTER(net 106 nf_log_bind_pf(struct net *net, u_int8_t pf, const struct nf_logger *logger) argument 122 nf_log_unbind_pf(struct net *net, u_int8_t pf) argument 132 nf_log_packet(struct net *net, u_int8_t pf, unsigned int hooknum, const struct sk_buff *skb, const struct net_device *in, const struct net_device *out, const struct nf_loginfo *loginfo, const char *fmt, ...) argument 160 struct net *net = seq_file_net(seq); local 172 struct net *net = seq_file_net(s); local 193 struct net *net = seq_file_net(s); local 256 struct net *net = current->nsproxy->net_ns; local 291 netfilter_log_sysctl_init(struct net *net) argument 335 netfilter_log_sysctl_exit(struct net *net) argument 345 netfilter_log_sysctl_init(struct net *net) argument 350 netfilter_log_sysctl_exit(struct net *net) argument 355 nf_log_net_init(struct net *net) argument 379 nf_log_net_exit(struct net *net) argument [all...] |
H A D | nfnetlink.c | 23 #include <linux/net.h> 26 #include <net/sock.h> 29 #include <net/netlink.h> 109 int nfnetlink_has_listeners(struct net *net, unsigned int group) argument 111 return netlink_has_listeners(net->nfnl, group); 115 struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, argument 118 return netlink_alloc_skb(net->nfnl, size, dst_portid, gfp_mask); 122 int nfnetlink_send(struct sk_buff *skb, struct net *ne argument 129 nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) argument 135 nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, int flags) argument 145 struct net *net = sock_net(skb->sk); local 242 nfnetlink_net_init(struct net *net) argument 263 struct net *net; local [all...] |
/net/unix/ |
H A D | sysctl_net_unix.c | 2 * NET4: Sysctl interface to net af_unix subsystem. 16 #include <net/af_unix.h> 29 int __net_init unix_sysctl_register(struct net *net) argument 38 if (net->user_ns != &init_user_ns) 41 table[0].data = &net->unx.sysctl_max_dgram_qlen; 42 net->unx.ctl = register_net_sysctl(net, "net/unix", table); 43 if (net 54 unix_sysctl_unregister(struct net *net) argument [all...] |
/net/core/ |
H A D | net_namespace.c | 18 #include <net/net_namespace.h> 19 #include <net/netns/generic.h> 32 struct net init_net = { 53 static int net_assign_generic(struct net *net, int id, void *data) argument 60 old_ng = rcu_dereference_protected(net->gen, 73 * The net_generic explores the net->gen array inside rcu 74 * read section. Besides once set the net->gen->ptr[x] 83 rcu_assign_pointer(net->gen, ng); 90 static int ops_init(const struct pernet_operations *ops, struct net *ne argument 117 ops_free(const struct pernet_operations *ops, struct net *net) argument 128 struct net *net; local 140 struct net *net; local 150 setup_net(struct net *net, struct user_namespace *user_ns) argument 198 struct net *net = NULL; local 218 net_free(struct net *net) argument 241 struct net *net; local 275 struct net *net, *tmp; local 325 __put_net(struct net *net) argument 342 struct net *net; local 368 struct net *net; local 385 net_ns_net_init(struct net *net) argument 390 net_ns_net_exit(struct net *net) argument 442 struct net *net; local 467 struct net *net; local 632 struct net *net = NULL; local 651 struct net *net = ns; local 664 struct net *net = ns; local [all...] |
/net/ |
H A D | sysctl_net.c | 2 * sysctl_net.c: sysctl interface to net subsystem. 5 * Added /proc/sys/net directories for each protocol family. [MS] 19 #include <net/sock.h> 22 #include <net/ip.h> 44 struct net *net = container_of(head->set, struct net, sysctls); local 45 kuid_t root_uid = make_kuid(net->user_ns, 0); 46 kgid_t root_gid = make_kgid(net->user_ns, 0); 49 if (ns_capable(net 67 sysctl_net_init(struct net *net) argument 73 sysctl_net_exit(struct net *net) argument 103 register_net_sysctl(struct net *net, const char *path, struct ctl_table *table) argument [all...] |
/net/sched/ |
H A D | cls_rsvp.c | 2 * net/sched/cls_rsvp.c Special RSVP packet classifier for IPv4. 18 #include <net/ip.h> 19 #include <net/netlink.h> 20 #include <net/act_api.h> 21 #include <net/pkt_cls.h>
|
H A D | cls_rsvp6.c | 2 * net/sched/cls_rsvp6.c Special RSVP packet classifier for IPv6. 19 #include <net/act_api.h> 20 #include <net/pkt_cls.h> 21 #include <net/netlink.h>
|
/net/ipv6/netfilter/ |
H A D | ip6table_raw.c | 26 const struct net *net = dev_net((in != NULL) ? in : out); local 28 return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_raw); 33 static int __net_init ip6table_raw_net_init(struct net *net) argument 40 net->ipv6.ip6table_raw = 41 ip6t_register_table(net, &packet_raw, repl); 43 return PTR_RET(net->ipv6.ip6table_raw); 46 static void __net_exit ip6table_raw_net_exit(struct net *net) argument [all...] |
H A D | ip6table_filter.c | 39 const struct net *net = dev_net((in != NULL) ? in : out); local 41 return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_filter); 50 static int __net_init ip6table_filter_net_init(struct net *net) argument 61 net->ipv6.ip6table_filter = 62 ip6t_register_table(net, &packet_filter, repl); 64 return PTR_RET(net->ipv6.ip6table_filter); 67 static void __net_exit ip6table_filter_net_exit(struct net *net) argument [all...] |
H A D | ip6table_security.c | 44 const struct net *net = dev_net((in != NULL) ? in : out); local 46 return ip6t_do_table(skb, hook, in, out, net->ipv6.ip6table_security); 51 static int __net_init ip6table_security_net_init(struct net *net) argument 58 net->ipv6.ip6table_security = 59 ip6t_register_table(net, &security_table, repl); 61 return PTR_RET(net->ipv6.ip6table_security); 64 static void __net_exit ip6table_security_net_exit(struct net *net) argument [all...] |
/net/ipv6/ |
H A D | sysctl_net_ipv6.c | 2 * sysctl_net_ipv6.c: sysctl interface to net IPV6 subsystem. 14 #include <net/ndisc.h> 15 #include <net/ipv6.h> 16 #include <net/addrconf.h> 17 #include <net/inet_frag.h> 48 static int __net_init ipv6_sysctl_net_init(struct net *net) argument 60 ipv6_table[0].data = &net->ipv6.sysctl.bindv6only; 62 ipv6_route_table = ipv6_route_sysctl_init(net); 66 ipv6_icmp_table = ipv6_icmp_sysctl_init(net); 100 ipv6_sysctl_net_exit(struct net *net) argument [all...] |
H A D | proc.c | 19 #include <linux/net.h> 25 #include <net/net_namespace.h> 26 #include <net/ip.h> 27 #include <net/sock.h> 28 #include <net/tcp.h> 29 #include <net/udp.h> 30 #include <net/transp_v6.h> 31 #include <net/ipv6.h> 35 struct net *net local 212 struct net *net = (struct net *)seq->private; local 268 struct net *net; local 289 struct net *net = dev_net(idev->dev); local 299 ipv6_proc_init_net(struct net *net) argument 320 ipv6_proc_exit_net(struct net *net) argument [all...] |
/net/ipv4/netfilter/ |
H A D | iptable_filter.c | 17 #include <net/ip.h> 40 const struct net *net; local 48 net = dev_net((in != NULL) ? in : out); 49 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_filter); 58 static int __net_init iptable_filter_net_init(struct net *net) argument 69 net->ipv4.iptable_filter = 70 ipt_register_table(net, &packet_filter, repl); 72 return PTR_RET(net 75 iptable_filter_net_exit(struct net *net) argument [all...] |
H A D | iptable_raw.c | 9 #include <net/ip.h> 27 const struct net *net; local 35 net = dev_net((in != NULL) ? in : out); 36 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_raw); 41 static int __net_init iptable_raw_net_init(struct net *net) argument 48 net->ipv4.iptable_raw = 49 ipt_register_table(net, &packet_raw, repl); 51 return PTR_RET(net 54 iptable_raw_net_exit(struct net *net) argument [all...] |
H A D | iptable_security.c | 21 #include <net/ip.h> 45 const struct net *net; local 53 net = dev_net((in != NULL) ? in : out); 54 return ipt_do_table(skb, hook, in, out, net->ipv4.iptable_security); 59 static int __net_init iptable_security_net_init(struct net *net) argument 66 net->ipv4.iptable_security = 67 ipt_register_table(net, &security_table, repl); 69 return PTR_RET(net 72 iptable_security_net_exit(struct net *net) argument [all...] |
/net/sunrpc/ |
H A D | sunrpc_syms.c | 2 * linux/net/sunrpc/sunrpc_syms.c 30 static __net_init int sunrpc_init_net(struct net *net) argument 33 struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); 35 err = rpc_proc_init(net); 39 err = ip_map_cache_create(net); 43 err = unix_gid_cache_create(net); 47 rpc_pipefs_init_net(net); 54 ip_map_cache_destroy(net); 56 rpc_proc_exit(net); 61 sunrpc_exit_net(struct net *net) argument [all...] |
H A D | netns.h | 4 #include <net/net_namespace.h> 5 #include <net/netns/generic.h> 40 int ip_map_cache_create(struct net *); 41 void ip_map_cache_destroy(struct net *);
|
/net/sunrpc/auth_gss/ |
H A D | gss_rpc_upcall.h | 2 * linux/net/sunrpc/gss_rpc_upcall.h 41 int gssp_accept_sec_context_upcall(struct net *net, 46 int set_gssp_clnt(struct net *);
|
/net/bridge/netfilter/ |
H A D | ebtable_broute.c | 11 * other ebtables table. See net/bridge/br_input.c. 64 static int __net_init broute_net_init(struct net *net) argument 66 net->xt.broute_table = ebt_register_table(net, &broute_table); 67 return PTR_RET(net->xt.broute_table); 70 static void __net_exit broute_net_exit(struct net *net) argument 72 ebt_unregister_table(net, net [all...] |