Searched defs:net (Results 1 - 25 of 364) sorted by relevance

1234567891011>>

/net/unix/
H A Dsysctl_net_unix.c2 * 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/xfrm/
H A Dxfrm_sysctl.c3 #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...]
H A Dxfrm_proc.c16 #include <net/snmp.h>
17 #include <net/xfrm.h>
53 struct net *net = seq->private; local
57 snmp_fold_field(net->mib.xfrm_statistics,
75 int __net_init xfrm_proc_init(struct net *net) argument
77 if (!proc_create("xfrm_stat", S_IRUGO, net->proc_net,
83 void xfrm_proc_fini(struct net *net) argument
[all...]
/net/bridge/netfilter/
H A Debt_nflog.c10 * xt_NFLOG.c, (C) 2006 by Patrick McHardy <kaber@trash.net>
20 #include <net/netfilter/nf_log.h>
27 struct net *net = dev_net(par->in ? par->in : par->out); local
34 nf_log_packet(net, PF_BRIDGE, par->hooknum, skb, par->in,
H A Debtable_broute.c11 * other ebtables table. See net/bridge/br_input.c.
62 static int __net_init broute_net_init(struct net *net) argument
64 net->xt.broute_table = ebt_register_table(net, &broute_table);
65 return PTR_ERR_OR_ZERO(net->xt.broute_table);
68 static void __net_exit broute_net_exit(struct net *net) argument
70 ebt_unregister_table(net, net
[all...]
H A Dnf_log_bridge.c14 #include <net/route.h>
17 #include <net/netfilter/nf_log.h>
19 static void nf_log_bridge_packet(struct net *net, u_int8_t pf, argument
29 nf_log_packet(net, NFPROTO_IPV4, hooknum, skb, in, out,
33 nf_log_packet(net, NFPROTO_IPV6, hooknum, skb, in, out,
38 nf_log_packet(net, NFPROTO_ARP, hooknum, skb, in, out,
51 static int __net_init nf_log_bridge_net_init(struct net *net) argument
53 nf_log_set(net, NFPROTO_BRIDG
57 nf_log_bridge_net_exit(struct net *net) argument
[all...]
H A Dnf_tables_bridge.c2 * Copyright (c) 2008 Patrick McHardy <kaber@trash.net>
15 #include <net/netfilter/nf_tables.h>
45 static int nf_tables_bridge_init_net(struct net *net) argument
47 net->nft.bridge = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL);
48 if (net->nft.bridge == NULL)
51 memcpy(net->nft.bridge, &nft_af_bridge, sizeof(nft_af_bridge));
53 if (nft_register_afinfo(net, net->nft.bridge) < 0)
58 kfree(net
62 nf_tables_bridge_exit_net(struct net *net) argument
[all...]
/net/netfilter/
H A Dxt_NFLOG.c2 * Copyright (c) 2006 Patrick McHardy <kaber@trash.net>
15 #include <net/netfilter/nf_log.h>
16 #include <net/netfilter/nfnetlink_log.h>
18 MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
29 struct net *net = dev_net(par->in ? par->in : par->out); local
36 nfulnl_log_packet(net, par->family, par->hooknum, skb, par->in,
H A Dnf_conntrack_timestamp.c14 #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 Dnf_tables_inet.c2 * Copyright (c) 2012-2014 Patrick McHardy <kaber@trash.net>
14 #include <net/netfilter/nf_tables.h>
15 #include <net/netfilter/nf_tables_ipv4.h>
16 #include <net/netfilter/nf_tables_ipv6.h>
17 #include <net/ip.h>
41 static int __net_init nf_tables_inet_init_net(struct net *net) argument
43 net->nft.inet = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL);
44 if (net->nft.inet == NULL)
46 memcpy(net
58 nf_tables_inet_exit_net(struct net *net) argument
[all...]
H A Dxt_LOG.c19 #include <net/ipv6.h>
20 #include <net/icmp.h>
21 #include <net/udp.h>
22 #include <net/tcp.h>
23 #include <net/route.h>
29 #include <net/netfilter/nf_log.h>
36 struct net *net = dev_net(par->in ? par->in : par->out); local
42 nf_log_packet(net, par->family, par->hooknum, skb, par->in, par->out,
/net/sunrpc/
H A Dsunrpc_syms.c2 * 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 err = rpc_pipefs_init_net(net);
57 unix_gid_cache_destroy(net);
59 ip_map_cache_destroy(net);
66 sunrpc_exit_net(struct net *net) argument
[all...]
/net/ipv4/netfilter/
H A Darptable_filter.c34 const struct net *net = dev_net((in != NULL) ? in : out); local
37 net->ipv4.arptable_filter);
42 static int __net_init arptable_filter_net_init(struct net *net) argument
49 net->ipv4.arptable_filter =
50 arpt_register_table(net, &packet_filter, repl);
52 return PTR_ERR_OR_ZERO(net->ipv4.arptable_filter);
55 static void __net_exit arptable_filter_net_exit(struct net *net) argument
[all...]
H A Diptable_raw.c9 #include <net/ip.h>
27 const struct net *net; local
35 net = dev_net((in != NULL) ? in : out);
36 return ipt_do_table(skb, ops->hooknum, 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_ERR_OR_ZERO(net
54 iptable_raw_net_exit(struct net *net) argument
[all...]
H A Diptable_security.c21 #include <net/ip.h>
45 const struct net *net; local
53 net = dev_net((in != NULL) ? in : out);
55 net->ipv4.iptable_security);
60 static int __net_init iptable_security_net_init(struct net *net) argument
67 net->ipv4.iptable_security =
68 ipt_register_table(net, &security_table, repl);
70 return PTR_ERR_OR_ZERO(net
73 iptable_security_net_exit(struct net *net) argument
[all...]
H A Dnf_tables_arp.c2 * Copyright (c) 2008-2010 Patrick McHardy <kaber@trash.net>
15 #include <net/netfilter/nf_tables.h>
43 static int nf_tables_arp_init_net(struct net *net) argument
45 net->nft.arp = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL);
46 if (net->nft.arp== NULL)
49 memcpy(net->nft.arp, &nft_af_arp, sizeof(nft_af_arp));
51 if (nft_register_afinfo(net, net->nft.arp) < 0)
56 kfree(net
60 nf_tables_arp_exit_net(struct net *net) argument
[all...]
H A Diptable_filter.c17 #include <net/ip.h>
40 const struct net *net; local
48 net = dev_net((in != NULL) ? in : out);
50 net->ipv4.iptable_filter);
59 static int __net_init iptable_filter_net_init(struct net *net) argument
70 net->ipv4.iptable_filter =
71 ipt_register_table(net, &packet_filter, repl);
73 return PTR_ERR_OR_ZERO(net
76 iptable_filter_net_exit(struct net *net) argument
[all...]
/net/ipv6/netfilter/
H A Dip6t_REJECT.c10 * Copyright (c) 2005-2007 Patrick McHardy <kaber@trash.net>
12 * Based on net/ipv4/netfilter/ipt_REJECT.c
26 #include <net/icmp.h>
27 #include <net/flow.h>
32 #include <net/netfilter/ipv6/nf_reject.h>
43 struct net *net = dev_net((par->in != NULL) ? par->in : par->out); local
48 nf_send_unreach6(net, skb, ICMPV6_NOROUTE, par->hooknum);
51 nf_send_unreach6(net, skb, ICMPV6_ADM_PROHIBITED, par->hooknum);
54 nf_send_unreach6(net, sk
[all...]
H A Dip6table_raw.c26 const struct net *net = dev_net((in != NULL) ? in : out); local
29 net->ipv6.ip6table_raw);
34 static int __net_init ip6table_raw_net_init(struct net *net) argument
41 net->ipv6.ip6table_raw =
42 ip6t_register_table(net, &packet_raw, repl);
44 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_raw);
47 static void __net_exit ip6table_raw_net_exit(struct net *net) argument
[all...]
H A Dip6table_security.c44 const struct net *net = dev_net((in != NULL) ? in : out); local
47 net->ipv6.ip6table_security);
52 static int __net_init ip6table_security_net_init(struct net *net) argument
59 net->ipv6.ip6table_security =
60 ip6t_register_table(net, &security_table, repl);
62 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_security);
65 static void __net_exit ip6table_security_net_exit(struct net *net) argument
[all...]
H A Dnft_reject_ipv6.c2 * Copyright (c) 2008-2009 Patrick McHardy <kaber@trash.net>
18 #include <net/netfilter/nf_tables.h>
19 #include <net/netfilter/nft_reject.h>
20 #include <net/netfilter/ipv6/nf_reject.h>
27 struct net *net = dev_net((pkt->in != NULL) ? pkt->in : pkt->out); local
31 nf_send_unreach6(net, pkt->skb, priv->icmp_code,
35 nf_send_reset6(net, pkt->skb, pkt->ops->hooknum);
75 MODULE_AUTHOR("Patrick McHardy <kaber@trash.net>");
/net/ipv6/
H A Dsysctl_net_ipv6.c2 * 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>
79 static int __net_init ipv6_sysctl_net_init(struct net *net) argument
91 ipv6_table[0].data = &net->ipv6.sysctl.bindv6only;
92 ipv6_table[1].data = &net->ipv6.sysctl.anycast_src_echo_reply;
93 ipv6_table[2].data = &net
135 ipv6_sysctl_net_exit(struct net *net) argument
[all...]
/net/nfc/
H A Daf_nfc.c30 static int nfc_sock_create(struct net *net, struct socket *sock, int proto, argument
35 if (net != &init_net)
43 rc = proto_tab[proto]->create(net, sock, proto_tab[proto]);
/net/bridge/
H A Dbr.c20 #include <net/llc.h>
21 #include <net/stp.h>
123 static void __net_exit br_net_exit(struct net *net) argument
129 for_each_netdev(net, dev)
/net/ipv4/
H A Dipcomp.c19 #include <net/ip.h>
20 #include <net/xfrm.h>
21 #include <net/icmp.h>
22 #include <net/ipcomp.h>
23 #include <net/protocol.h>
24 #include <net/sock.h>
28 struct net *net = dev_net(skb->dev); local
45 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
51 ipv4_update_pmtu(skb, net, inf
62 struct net *net = xs_net(x); local
100 struct net *net = xs_net(x); local
[all...]

Completed in 259 milliseconds

1234567891011>>