Searched defs:net (Results 26 - 50 of 364) sorted by relevance

1234567891011>>

/net/ipv4/netfilter/
H A Diptable_nat.c3 * (C) 2011 Patrick McHardy <kaber@trash.net>
15 #include <net/ip.h>
17 #include <net/netfilter/nf_nat.h>
18 #include <net/netfilter/nf_nat_core.h>
19 #include <net/netfilter/nf_nat_l3proto.h>
37 struct net *net = nf_ct_net(ct); local
39 return ipt_do_table(skb, ops->hooknum, in, out, net->ipv4.nat_table);
113 static int __net_init iptable_nat_net_init(struct net *net) argument
125 iptable_nat_net_exit(struct net *net) argument
[all...]
H A Dnf_tables_ipv4.c2 * Copyright (c) 2008 Patrick McHardy <kaber@trash.net>
16 #include <net/netfilter/nf_tables.h>
17 #include <net/net_namespace.h>
18 #include <net/ip.h>
19 #include <net/netfilter/nf_tables_ipv4.h>
66 static int nf_tables_ipv4_init_net(struct net *net) argument
68 net->nft.ipv4 = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL);
69 if (net->nft.ipv4 == NULL)
72 memcpy(net
83 nf_tables_ipv4_exit_net(struct net *net) argument
[all...]
H A Dipt_rpfilter.c15 #include <net/ip.h>
16 #include <net/ip_fib.h>
17 #include <net/route.h>
40 struct net *net = dev_net(dev); local
43 if (fib_lookup(net, fl4, &res))
H A Diptable_mangle.c16 #include <net/sock.h>
17 #include <net/route.h>
19 #include <net/ip.h>
100 static int __net_init iptable_mangle_net_init(struct net *net) argument
107 net->ipv4.iptable_mangle =
108 ipt_register_table(net, &packet_mangler, repl);
110 return PTR_ERR_OR_ZERO(net->ipv4.iptable_mangle);
113 static void __net_exit iptable_mangle_net_exit(struct net *net) argument
[all...]
H A Dnf_nat_masquerade_ipv4.c16 #include <net/protocol.h>
17 #include <net/ip.h>
18 #include <net/checksum.h>
19 #include <net/route.h>
22 #include <net/netfilter/nf_nat.h>
23 #include <net/netfilter/ipv4/nf_nat_masquerade.h>
91 struct net *net = dev_net(dev); local
100 nf_ct_iterate_cleanup(net, device_cmp,
/net/ipv4/
H A Dudplite.c96 static int __net_init udplite4_proc_init_net(struct net *net) argument
98 return udp_proc_register(net, &udplite4_seq_afinfo);
101 static void __net_exit udplite4_proc_exit_net(struct net *net) argument
103 udp_proc_unregister(net, &udplite4_seq_afinfo);
H A Dudp_tunnel.c7 #include <net/udp.h>
8 #include <net/udp_tunnel.h>
9 #include <net/net_namespace.h>
11 int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg, argument
22 sk_change_net(sock->sk, net);
57 void setup_udp_tunnel_sock(struct net *net, struct socket *sock, argument
/net/ipv6/
H A Dip6_udp_tunnel.c8 #include <net/udp.h>
9 #include <net/udp_tunnel.h>
10 #include <net/net_namespace.h>
11 #include <net/netns/generic.h>
12 #include <net/ip6_tunnel.h>
13 #include <net/ip6_checksum.h>
15 int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg, argument
26 sk_change_net(sock->sk, net);
H A Dxfrm6_input.c2 * xfrm6_input.c: based on net/ipv4/xfrm4_input.c
16 #include <net/ipv6.h>
17 #include <net/xfrm.h>
60 struct net *net = dev_net(skb->dev); local
70 XFRM_INC_STATS(net, LINUX_MIB_XFRMINERROR);
79 XFRM_INC_STATS(net, LINUX_MIB_XFRMINBUFFERERROR);
103 x = xfrm_state_lookup_byaddr(net, skb->mark, dst, src, proto, AF_INET6);
125 XFRM_INC_STATS(net, LINUX_MIB_XFRMINNOSTATES);
H A Dip6_input.c9 * Based in linux/net/ipv4/ip_input.c
26 #include <linux/net.h>
36 #include <net/sock.h>
37 #include <net/snmp.h>
39 #include <net/ipv6.h>
40 #include <net/protocol.h>
41 #include <net/transp_v6.h>
42 #include <net/rawv6.h>
43 #include <net/ndisc.h>
44 #include <net/ip6_rout
70 struct net *net = dev_net(skb->dev); local
203 struct net *net = dev_net(skb_dst(skb)->dev); local
[all...]
H A Dipcomp6.c36 #include <net/ip.h>
37 #include <net/xfrm.h>
38 #include <net/ipcomp.h>
48 #include <net/ip6_route.h>
49 #include <net/icmp.h>
50 #include <net/ipv6.h>
51 #include <net/protocol.h>
59 struct net *net = dev_net(skb->dev); local
71 x = xfrm_state_lookup(net, sk
87 struct net *net = xs_net(x); local
123 struct net *net = xs_net(x); local
[all...]
/net/ipv6/netfilter/
H A Dip6table_filter.c39 const struct net *net = dev_net((in != NULL) ? in : out); local
42 net->ipv6.ip6table_filter);
51 static int __net_init ip6table_filter_net_init(struct net *net) argument
62 net->ipv6.ip6table_filter =
63 ip6t_register_table(net, &packet_filter, repl);
65 return PTR_ERR_OR_ZERO(net->ipv6.ip6table_filter);
68 static void __net_exit ip6table_filter_net_exit(struct net *net) argument
[all...]
H A Dip6table_nat.c2 * Copyright (c) 2011 Patrick McHardy <kaber@trash.net>
17 #include <net/ipv6.h>
19 #include <net/netfilter/nf_nat.h>
20 #include <net/netfilter/nf_nat_core.h>
21 #include <net/netfilter/nf_nat_l3proto.h>
39 struct net *net = nf_ct_net(ct); local
41 return ip6t_do_table(skb, ops->hooknum, in, out, net->ipv6.ip6table_nat);
115 static int __net_init ip6table_nat_net_init(struct net *net) argument
127 ip6table_nat_net_exit(struct net *net) argument
[all...]
H A Dnf_tables_ipv6.c2 * Copyright (c) 2008 Patrick McHardy <kaber@trash.net>
16 #include <net/netfilter/nf_tables.h>
17 #include <net/netfilter/nf_tables_ipv6.h>
65 static int nf_tables_ipv6_init_net(struct net *net) argument
67 net->nft.ipv6 = kmalloc(sizeof(struct nft_af_info), GFP_KERNEL);
68 if (net->nft.ipv6 == NULL)
71 memcpy(net->nft.ipv6, &nft_af_ipv6, sizeof(nft_af_ipv6));
73 if (nft_register_afinfo(net, net
82 nf_tables_ipv6_exit_net(struct net *net) argument
[all...]
/net/irda/
H A Dirnetlink.c7 * (see net/wireless/nl80211.c) which is:
8 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
19 #include <net/net_namespace.h>
20 #include <net/sock.h>
21 #include <net/irda/irda.h>
22 #include <net/irda/irlap.h>
23 #include <net/genetlink.h>
35 static struct net_device * ifname_to_netdev(struct net *net, struct genl_info *info) argument
46 return dev_get_by_name(net, ifnam
[all...]
/net/netfilter/ipvs/
H A Dip_vs_proto_ah_esp.c23 #include <net/ip_vs.h>
44 ah_esp_conn_fill_param_proto(struct net *net, int af, argument
49 ip_vs_conn_fill_param(net, af, IPPROTO_UDP,
53 ip_vs_conn_fill_param(net, af, IPPROTO_UDP,
65 struct net *net = skb_net(skb); local
67 ah_esp_conn_fill_param_proto(net, af, iph, inverse, &p);
92 struct net *net local
[all...]
/net/netfilter/
H A Dnf_conntrack_acct.c17 #include <net/netfilter/nf_conntrack.h>
18 #include <net/netfilter/nf_conntrack_extend.h>
19 #include <net/netfilter/nf_conntrack_acct.h>
63 static int nf_conntrack_acct_init_sysctl(struct net *net) argument
72 table[0].data = &net->ct.sysctl_acct;
75 if (net->user_ns != &init_user_ns)
78 net->ct.acct_sysctl_header = register_net_sysctl(net, "net/netfilte
92 nf_conntrack_acct_fini_sysctl(struct net *net) argument
101 nf_conntrack_acct_init_sysctl(struct net *net) argument
106 nf_conntrack_acct_fini_sysctl(struct net *net) argument
111 nf_conntrack_acct_pernet_init(struct net *net) argument
117 nf_conntrack_acct_pernet_fini(struct net *net) argument
[all...]
H A Dnft_reject_inet.c2 * Copyright (c) 2014 Patrick McHardy <kaber@trash.net>
15 #include <net/netfilter/nf_tables.h>
16 #include <net/netfilter/nft_reject.h>
17 #include <net/netfilter/ipv4/nf_reject.h>
18 #include <net/netfilter/ipv6/nf_reject.h>
25 struct net *net = dev_net((pkt->in != NULL) ? pkt->in : pkt->out); local
45 nf_send_unreach6(net, pkt->skb, priv->icmp_code,
49 nf_send_reset6(net, pkt->skb, pkt->ops->hooknum);
52 nf_send_unreach6(net, pk
[all...]
/net/sched/
H A Dem_nbyte.c2 * net/sched/em_nbyte.c N-Byte ematch
19 #include <net/pkt_cls.h>
26 static int em_nbyte_change(struct net *net, void *data, int data_len, argument
/net/wireless/
H A Dwext-proc.c11 * The /proc/net/wireless file is a human readable user-space interface
15 * This interface is a pure clone of /proc/net/dev (in net/core/dev.c).
25 #include <net/iw_handler.h>
26 #include <net/wext.h>
73 * Print info for /proc/net/wireless (print all entries)
92 struct net *net = seq_file_net(seq); local
101 for_each_netdev(net, dev)
109 struct net *ne local
143 wext_proc_init(struct net *net) argument
153 wext_proc_exit(struct net *net) argument
[all...]
/net/atm/
H A Dpvc.c0 /* net/atm/pvc.c - ATM PVC sockets */
6 #include <linux/net.h> /* struct socket, struct proto_ops */
15 #include <net/sock.h> /* for sock_no_* */
132 static int pvc_create(struct net *net, struct socket *sock, int protocol, argument
135 if (net != &init_net)
139 return vcc_create(net, sock, protocol, PF_ATMPVC);
/net/bluetooth/bnep/
H A Dsock.c188 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol, argument
198 sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &bnep_proto);
/net/bluetooth/cmtp/
H A Dsock.c38 #include <net/sock.h>
198 static int cmtp_sock_create(struct net *net, struct socket *sock, int protocol, argument
208 sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &cmtp_proto);
/net/bridge/netfilter/
H A Debtable_filter.c101 static int __net_init frame_filter_net_init(struct net *net) argument
103 net->xt.frame_filter = ebt_register_table(net, &frame_filter);
104 return PTR_ERR_OR_ZERO(net->xt.frame_filter);
107 static void __net_exit frame_filter_net_exit(struct net *net) argument
109 ebt_unregister_table(net, net->xt.frame_filter);
H A Debtable_nat.c101 static int __net_init frame_nat_net_init(struct net *net) argument
103 net->xt.frame_nat = ebt_register_table(net, &frame_nat);
104 return PTR_ERR_OR_ZERO(net->xt.frame_nat);
107 static void __net_exit frame_nat_net_exit(struct net *net) argument
109 ebt_unregister_table(net, net->xt.frame_nat);

Completed in 243 milliseconds

1234567891011>>