Home
last modified time | relevance | path

Searched defs:net (Results 1 – 200 of 639) sorted by relevance

1234

/linux-4.4.14/include/net/
Dnet_namespace.h47 struct net { struct
48 atomic_t passive; /* To decided when the network argument
51 atomic_t count; /* To decided when the network argument
58 struct list_head list; /* list of network namespaces */ argument
60 struct list_head exit_list; /* Use only net_mutex */ argument
64 struct idr netns_ids; argument
68 struct proc_dir_entry *proc_net; argument
69 struct proc_dir_entry *proc_net_stat; argument
75 struct sock *rtnl; /* rtnetlink socket */ argument
89 struct net_device *loopback_dev; /* The loopback */ argument
[all …]
Dip.h188 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
189 #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) argument
190 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
191 #define IP_ADD_STATS_BH(net, field, val) SNMP_ADD_STATS64_BH((net)->mib.ip_statistics, field, val) argument
192 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument
193 #define IP_UPD_PO_STATS_BH(net, field, val) SNMP_UPD_PO_STATS64_BH((net)->mib.ip_statistics, field,… argument
194 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument
195 #define NET_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.net_statistics, field) argument
196 #define NET_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->mib.net_statistics, field) argument
197 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
[all …]
Dwext.h17 static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl()
22 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl()
33 static inline int wext_proc_init(struct net *net) in wext_proc_init()
37 static inline void wext_proc_exit(struct net *net) in wext_proc_exit()
Dicmp.h32 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
33 #define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->mib.icmp_statistics, field) argument
34 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument
35 #define ICMPMSGIN_INC_STATS_BH(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics… argument
Dl3mdev.h96 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
115 static inline int l3mdev_get_saddr(struct net *net, int ifindex, in l3mdev_get_saddr()
147 struct dst_entry *l3mdev_rt6_dst_by_oif(struct net *net, in l3mdev_rt6_dst_by_oif()
190 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
201 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
206 static inline int l3mdev_get_saddr(struct net *net, int ifindex, in l3mdev_get_saddr()
219 struct dst_entry *l3mdev_rt6_dst_by_oif(struct net *net, in l3mdev_rt6_dst_by_oif()
Dipv6.h115 #define IP6_REPLY_MARK(net, mark) \ argument
124 #define _DEVINC(net, statname, modifier, idev, field) \ argument
133 #define _DEVINCATOMIC(net, statname, modifier, idev, field) \ argument
142 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument
150 #define _DEVADD(net, statname, modifier, idev, field, val) \ argument
158 #define _DEVUPD(net, statname, modifier, idev, field, val) \ argument
168 #define IP6_INC_STATS(net, idev,field) \ argument
170 #define IP6_INC_STATS_BH(net, idev,field) \ argument
172 #define IP6_ADD_STATS(net, idev,field,val) \ argument
174 #define IP6_ADD_STATS_BH(net, idev,field,val) \ argument
[all …]
Dudp.h84 struct net *net, unsigned int num) in udp_hashslot()
199 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port()
274 #define UDP_INC_STATS_USER(net, field, is_udplite) do { \ argument
277 #define UDP_INC_STATS_BH(net, field, is_udplite) do { \ argument
281 #define UDP6_INC_STATS_BH(net, field, is_udplite) do { \ argument
285 #define UDP6_INC_STATS_USER(net, field, __lite) do { \ argument
Dip_fib.h175 #define FIB_RES_SADDR(net, res) \ argument
184 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
212 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
226 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table()
231 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup()
261 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup()
306 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users()
311 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users()
368 static inline int fib_proc_init(struct net *net) in fib_proc_init()
372 static inline void fib_proc_exit(struct net *net) in fib_proc_exit()
Droute.h120 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key()
131 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key()
136 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output()
148 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports()
163 static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4, in ip_route_output_gre()
279 struct net *net = sock_net(sk); in ip_route_connect() local
/linux-4.4.14/net/core/
Dnet_namespace.c56 static int net_assign_generic(struct net *net, int id, void *data) in net_assign_generic()
93 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init()
120 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free()
131 struct net *net; in ops_exit_list() local
143 struct net *net; in ops_free_list() local
151 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid()
169 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr()
180 static int __peernet2id_alloc(struct net *net, struct net *peer, bool *alloc) in __peernet2id_alloc()
203 static int __peernet2id(struct net *net, struct net *peer) in __peernet2id()
214 int peernet2id_alloc(struct net *net, struct net *peer) in peernet2id_alloc()
[all …]
Ddev_ioctl.c20 static int dev_ifname(struct net *net, struct ifreq __user *arg) in dev_ifname()
67 static int dev_ifconf(struct net *net, char __user *arg) in dev_ifconf()
121 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc_locked()
241 static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc()
359 void dev_load(struct net *net, const char *name) in dev_load()
393 int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg) in dev_ioctl()
Dfib_rules.c68 static struct fib_rules_ops *lookup_rules_ops(struct net *net, int family) in lookup_rules_ops()
102 struct net *net; in __fib_rules_register() local
128 fib_rules_register(const struct fib_rules_ops *tmpl, struct net *net) in fib_rules_register()
164 struct net *net = ops->fro_net; in fib_rules_unregister() local
270 struct net *net = sock_net(skb->sk); in fib_nl_newrule() local
430 struct net *net = sock_net(skb->sk); in fib_nl_delrule() local
658 struct net *net = sock_net(skb->sk); in fib_nl_dumprule() local
696 struct net *net; in notify_rule_change() local
751 struct net *net = dev_net(dev); in fib_rules_event() local
782 static int __net_init fib_rules_net_init(struct net *net) in fib_rules_net_init()
Drtnetlink.c335 static void __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops) in __rtnl_kill_links()
355 struct net *net; in __rtnl_link_unregister() local
369 struct net *net; in rtnl_lock_unregistering_all() local
620 int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned int group, int echo) in rtnetlink_send()
634 int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid) in rtnl_unicast()
642 void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid, u32 group, in rtnl_notify()
655 void rtnl_set_sk_err(struct net *net, u32 group, int error) in rtnl_set_sk_err()
1419 struct net *net = sock_net(skb->sk); in rtnl_dump_ifinfo() local
1489 struct net *net; in rtnl_link_get_net() local
1690 struct net *net = rtnl_link_get_net(dev_net(dev), tb); in do_setlink() local
[all …]
Dflow.c34 struct net *net; member
192 flow_cache_lookup(struct net *net, const struct flowi *key, u16 family, u8 dir, in flow_cache_lookup()
340 void flow_cache_flush(struct net *net) in flow_cache_flush()
383 struct net *net = container_of(xfrm, struct net, xfrm); in flow_cache_flush_task() local
388 void flow_cache_flush_deferred(struct net *net) in flow_cache_flush_deferred()
435 int flow_cache_init(struct net *net) in flow_cache_init()
494 void flow_cache_fini(struct net *net) in flow_cache_fini()
Dnet-procfs.c17 struct net *net = seq_file_net(seq); in dev_from_same_bucket() local
315 static int __net_init dev_proc_net_init(struct net *net) in dev_proc_net_init()
341 static void __net_exit dev_proc_net_exit(struct net *net) in dev_proc_net_exit()
400 static int __net_init dev_mc_net_init(struct net *net) in dev_mc_net_init()
407 static void __net_exit dev_mc_net_exit(struct net *net) in dev_mc_net_exit()
/linux-4.4.14/net/tipc/
Dbcast.c65 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base()
70 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu()
78 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary()
108 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_inc_bearer_dst_cnt()
118 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_dec_bearer_dst_cnt()
138 static void tipc_bcbase_xmit(struct net *net, struct sk_buff_head *xmitq) in tipc_bcbase_xmit()
180 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *list) in tipc_bcast_xmit()
216 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb) in tipc_bcast_rcv()
250 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, u32 acked) in tipc_bcast_ack_rcv()
272 void tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv()
[all …]
Dname_distr.c71 static struct sk_buff *named_prepare_buf(struct net *net, u32 type, u32 size, in named_prepare_buf()
87 void named_cluster_distribute(struct net *net, struct sk_buff *skb) in named_cluster_distribute()
115 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ) in tipc_named_publish()
141 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ) in tipc_named_withdraw()
168 static void named_distribute(struct net *net, struct sk_buff_head *list, in named_distribute()
212 void tipc_named_node_up(struct net *net, u32 dnode) in tipc_named_node_up()
229 static void tipc_publ_subscribe(struct net *net, struct publication *publ, in tipc_publ_subscribe()
250 static void tipc_publ_unsubscribe(struct net *net, struct publication *publ, in tipc_publ_unsubscribe()
271 static void tipc_publ_purge(struct net *net, struct publication *publ, u32 addr) in tipc_publ_purge()
293 void tipc_publ_notify(struct net *net, struct list_head *nsub_list, u32 addr) in tipc_publ_notify()
[all …]
Dbearer.c175 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name) in tipc_bearer_find()
189 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_add_dest()
201 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_remove_dest()
216 static int tipc_enable_bearer(struct net *net, const char *name, in tipc_enable_bearer()
339 static int tipc_reset_bearer(struct net *net, struct tipc_bearer *b_ptr) in tipc_reset_bearer()
352 static void bearer_disable(struct net *net, struct tipc_bearer *b_ptr) in bearer_disable()
374 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, in tipc_enable_l2_media()
417 int tipc_l2_send_msg(struct net *net, struct sk_buff *skb, in tipc_l2_send_msg()
443 int tipc_bearer_mtu(struct net *net, u32 bearer_id) in tipc_bearer_mtu()
458 void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id, in tipc_bearer_xmit_skb()
[all …]
Dnet.c111 int tipc_net_start(struct net *net, u32 addr) in tipc_net_start()
131 void tipc_net_stop(struct net *net) in tipc_net_stop()
148 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net()
181 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local
206 struct net *net = sock_net(skb->sk); in tipc_nl_net_set() local
Dbcast.h65 static inline void tipc_bcast_lock(struct net *net) in tipc_bcast_lock()
70 static inline void tipc_bcast_unlock(struct net *net) in tipc_bcast_unlock()
75 static inline struct tipc_link *tipc_bc_sndlink(struct net *net) in tipc_bc_sndlink()
Daddr.c44 int in_own_cluster(struct net *net, u32 addr) in in_own_cluster()
49 int in_own_cluster_exact(struct net *net, u32 addr) in in_own_cluster_exact()
59 int in_own_node(struct net *net, u32 addr) in in_own_node()
72 u32 addr_domain(struct net *net, u32 sc) in addr_domain()
Dname_table.c232 static struct publication *tipc_nameseq_insert_publ(struct net *net, in tipc_nameseq_insert_publ()
351 static struct publication *tipc_nameseq_remove_publ(struct net *net, in tipc_nameseq_remove_publ()
445 static struct name_seq *nametbl_find_seq(struct net *net, u32 type) in nametbl_find_seq()
460 struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type, in tipc_nametbl_insert_publ()
488 struct publication *tipc_nametbl_remove_publ(struct net *net, u32 type, in tipc_nametbl_remove_publ()
524 u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, in tipc_nametbl_translate()
612 int tipc_nametbl_mc_translate(struct net *net, u32 type, u32 lower, u32 upper, in tipc_nametbl_mc_translate()
653 struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower, in tipc_nametbl_publish()
687 int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower, u32 ref, in tipc_nametbl_withdraw()
768 int tipc_nametbl_init(struct net *net) in tipc_nametbl_init()
[all …]
Dnode.c123 struct tipc_node *tipc_node_find(struct net *net, u32 addr) in tipc_node_find()
144 struct tipc_node *tipc_node_create(struct net *net, u32 addr, u16 capabilities) in tipc_node_create()
223 void tipc_node_stop(struct net *net) in tipc_node_stop()
237 int tipc_node_add_conn(struct net *net, u32 dnode, u32 port, u32 peer_port) in tipc_node_add_conn()
268 void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port) in tipc_node_remove_conn()
503 void tipc_node_check_dest(struct net *net, u32 onode, in tipc_node_check_dest()
635 void tipc_node_delete_links(struct net *net, int bearer_id) in tipc_node_delete_links()
903 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 addr, in tipc_node_get_linkname()
930 struct net *net = node->net; in tipc_node_unlock() local
1023 int tipc_node_xmit(struct net *net, struct sk_buff_head *list, in tipc_node_xmit()
[all …]
Ddiscover.c65 struct net *net; member
80 static void tipc_disc_init_msg(struct net *net, struct sk_buff *buf, u32 type, in tipc_disc_init_msg()
123 void tipc_disc_rcv(struct net *net, struct sk_buff *skb, in tipc_disc_rcv()
270 int tipc_disc_create(struct net *net, struct tipc_bearer *b_ptr, in tipc_disc_create()
319 void tipc_disc_reset(struct net *net, struct tipc_bearer *b_ptr) in tipc_disc_reset()
Dsocket.c326 static int tipc_sk_create(struct net *net, struct socket *sock, in tipc_sk_create()
424 struct net *net; in tipc_release() local
674 struct net *net = sock_net(sk); in tipc_sendmcast() local
726 void tipc_sk_mcast_rcv(struct net *net, struct sk_buff_head *arrvq, in tipc_sk_mcast_rcv()
865 struct net *net = sock_net(sk); in __tipc_sendmsg() local
1019 struct net *net = sock_net(sk); in __tipc_send_stream() local
1113 struct net *net = sock_net(sk); in tipc_sk_finish_conn() local
1226 struct net *net = sock_net(&tsk->sk); in tipc_sk_send_ack() local
1537 struct net *net = sock_net(sk); in filter_connect() local
1776 void tipc_sk_rcv(struct net *net, struct sk_buff_head *inputq) in tipc_sk_rcv()
[all …]
Dcore.c53 static int __net_init tipc_init_net(struct net *net) in tipc_init_net()
92 static void __net_exit tipc_exit_net(struct net *net) in tipc_exit_net()
Dsubscr.c219 static int tipc_subscrp_create(struct net *net, struct tipc_subscr *s, in tipc_subscrp_create()
288 static void tipc_subscrb_rcv_cb(struct net *net, int conid, in tipc_subscrb_rcv_cb()
308 int tipc_topsrv_start(struct net *net) in tipc_topsrv_start()
346 void tipc_topsrv_stop(struct net *net) in tipc_topsrv_stop()
/linux-4.4.14/net/ipv4/
Dfib_frontend.c53 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init()
77 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table()
115 struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
134 static void fib_replace_table(struct net *net, struct fib_table *old, in fib_replace_table()
157 int fib_unmerge(struct net *net) in fib_unmerge()
179 static void fib_flush(struct net *net) in fib_flush()
197 void fib_flush_external(struct net *net) in fib_flush_external()
214 static inline unsigned int __inet_dev_addr_type(struct net *net, in __inet_dev_addr_type()
243 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table()
249 unsigned int inet_addr_type(struct net *net, __be32 addr) in inet_addr_type()
[all …]
Dipmr.c76 possible_net_t net; member
141 #define ipmr_for_each_table(mrt, net) \ argument
144 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table()
155 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup()
242 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init()
274 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit()
287 #define ipmr_for_each_table(mrt, net) \ argument
290 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table()
295 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup()
302 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init()
[all …]
Dxfrm4_policy.c22 static struct dst_entry *__xfrm4_dst_lookup(struct net *net, struct flowi4 *fl4, in __xfrm4_dst_lookup()
45 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif, in xfrm4_dst_lookup()
54 static int xfrm4_get_saddr(struct net *net, int oif, in xfrm4_get_saddr()
220 struct net *net = container_of(ops, struct net, xfrm.xfrm4_dst_ops); in xfrm4_garbage_collect() local
298 static int __net_init xfrm4_net_sysctl_init(struct net *net) in xfrm4_net_sysctl_init()
326 static void __net_exit xfrm4_net_sysctl_exit(struct net *net) in xfrm4_net_sysctl_exit()
339 static int inline xfrm4_net_sysctl_init(struct net *net) in xfrm4_net_sysctl_init()
344 static void inline xfrm4_net_sysctl_exit(struct net *net) in xfrm4_net_sysctl_exit()
349 static int __net_init xfrm4_net_init(struct net *net) in xfrm4_net_init()
366 static void __net_exit xfrm4_net_exit(struct net *net) in xfrm4_net_exit()
Dproc.c54 struct net *net = seq->private; in sockstat_seq_show() local
332 struct net *net = seq->private; in icmpmsg_put() local
354 struct net *net = seq->private; in icmp_put() local
384 struct net *net = seq->private; in snmp_seq_show() local
468 struct net *net = seq->private; in netstat_seq_show() local
508 static __net_init int ip_proc_init_net(struct net *net) in ip_proc_init_net()
528 static __net_exit void ip_proc_exit_net(struct net *net) in ip_proc_exit_net()
Dip_fragment.c93 int ip_frag_mem(struct net *net) in ip_frag_mem()
142 struct net *net = container_of(ipv4, struct net, ipv4); in ip4_frag_init() local
198 struct net *net; in ip_expire() local
253 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find()
293 struct net *net; in ip_frag_too_far() local
527 struct net *net = container_of(qp->q.net, struct net, ipv4.frags); in ip_frag_reasm() local
657 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_defrag()
686 struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_check_defrag()
776 static int __net_init ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register()
813 static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net) in ip4_frags_ns_ctl_unregister()
[all …]
Dicmp.c207 static struct sock *icmp_sk(struct net *net) in icmp_sk()
212 static inline struct sock *icmp_xmit_lock(struct net *net) in icmp_xmit_lock()
289 static bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt, in icmpv4_xrlim_allow()
328 void icmp_out_count(struct net *net, unsigned char type) in icmp_out_count()
393 struct net *net = dev_net(rt->dst.dev); in icmp_reply() local
459 static struct rtable *icmp_route_lookup(struct net *net, in icmp_route_lookup()
579 struct net *net; in icmp_send() local
777 struct net *net; in icmp_unreach() local
907 struct net *net; in icmp_echo() local
979 struct net *net = dev_net(rt->dst.dev); in icmp_rcv() local
[all …]
Dip_input.c160 struct net *net = dev_net(dev); in ip_call_ra_chain() local
192 static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_deliver_finish()
250 struct net *net = dev_net(skb->dev); in ip_local_deliver() local
314 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish()
378 struct net *net; in ip_rcv() local
Dping.c67 static inline u32 ping_hashfn(const struct net *net, u32 num, u32 mask) in ping_hashfn()
77 struct net *net, unsigned int num) in ping_hashslot()
171 static struct sock *ping_lookup(struct net *net, struct sk_buff *skb, u16 ident) in ping_lookup()
239 static void inet_get_ping_group_range_net(struct net *net, kgid_t *low, in inet_get_ping_group_range_net()
256 struct net *net = sock_net(sk); in ping_init_sock() local
304 struct net *net = sock_net(sk); in ping_check_bind_addr() local
492 struct net *net = dev_net(skb->dev); in ping_err() local
699 struct net *net = sock_net(sk); in ping_v4_sendmsg() local
966 struct net *net = dev_net(skb->dev); in ping_rcv() local
1020 struct net *net = seq_file_net(seq); in ping_get_first() local
[all …]
Ddevinet.c93 #define IPV4_DEVCONF_DFLT(net, attr) \ argument
110 static u32 inet_addr_hash(const struct net *net, __be32 addr) in inet_addr_hash()
117 static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa) in inet_hash_insert()
139 struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref) in __ip_dev_find()
527 struct in_device *inetdev_by_index(struct net *net, int ifindex) in inetdev_by_index()
577 struct net *net = sock_net(skb->sk); in inet_rtm_deladdr() local
746 static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, in rtm_to_ifaddr()
849 struct net *net = sock_net(skb->sk); in inet_rtm_newaddr() local
918 int devinet_ioctl(struct net *net, unsigned int cmd, void __user *arg) in devinet_ioctl()
1200 struct net *net = dev_net(dev); in inet_select_addr() local
[all …]
Dfib_rules.c50 int __fib_lookup(struct net *net, struct flowi4 *flp, in __fib_lookup()
152 static struct fib_table *fib_empty_table(struct net *net) in fib_empty_table()
171 struct net *net = sock_net(skb->sk); in fib4_rule_configure() local
227 struct net *net = rule->fr_net; in fib4_rule_delete() local
344 int __net_init fib4_rules_init(struct net *net) in fib4_rules_init()
366 void __net_exit fib4_rules_exit(struct net *net) in fib4_rules_exit()
Dip_output.c99 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in __ip_local_out()
110 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_out()
140 struct net *net = sock_net(sk); in ip_build_and_send_pkt() local
175 static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_finish_output2()
223 static int ip_finish_output_gso(struct net *net, struct sock *sk, in ip_finish_output_gso()
267 static int ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_finish_output()
288 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_mc_output()
350 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_output()
383 struct net *net = sock_net(sk); in ip_queue_xmit() local
493 static int ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in ip_fragment()
[all …]
Dsysctl_net_ipv4.c47 static void set_local_port_range(struct net *net, int range[2]) in set_local_port_range()
66 struct net *net = in ipv4_local_port_range() local
96 struct net *net = in inet_get_ping_group_range_table() local
111 struct net *net = in set_ping_group_range() local
956 static __net_init int ipv4_sysctl_init_net(struct net *net) in ipv4_sysctl_init_net()
992 static __net_exit void ipv4_sysctl_exit_net(struct net *net) in ipv4_sysctl_exit_net()
Darp.c394 struct net *net = dev_net(in_dev->dev); in arp_ignore() local
433 struct net *net = dev_net(dev); in arp_filter() local
627 static int arp_xmit_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in arp_xmit_finish()
648 static int arp_process(struct net *net, struct sock *sk, struct sk_buff *skb) in arp_process()
934 static int arp_req_set_proxy(struct net *net, struct net_device *dev, int on) in arp_req_set_proxy()
947 static int arp_req_set_public(struct net *net, struct arpreq *r, in arp_req_set_public()
970 static int arp_req_set(struct net *net, struct arpreq *r, in arp_req_set()
1081 static int arp_req_delete_public(struct net *net, struct arpreq *r, in arp_req_delete_public()
1096 static int arp_req_delete(struct net *net, struct arpreq *r, in arp_req_delete()
1121 int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg) in arp_ioctl()
[all …]
Dipcomp.c28 struct net *net = dev_net(skb->dev); in ipcomp4_err() local
62 struct net *net = xs_net(x); in ipcomp_tunnel_create() local
100 struct net *net = xs_net(x); in ipcomp_tunnel_attach() local
Dudp.c135 static int udp_lib_lport_inuse(struct net *net, __u16 num, in udp_lib_lport_inuse()
169 static int udp_lib_lport_inuse2(struct net *net, __u16 num, in udp_lib_lport_inuse2()
216 struct net *net = sock_net(sk); in udp_lib_get_port() local
321 static u32 udp4_portaddr_hash(const struct net *net, __be32 saddr, in udp4_portaddr_hash()
339 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
385 static inline int compute_score2(struct sock *sk, struct net *net, in compute_score2()
428 static u32 udp_ehashfn(const struct net *net, const __be32 laddr, in udp_ehashfn()
441 static struct sock *udp4_lib_lookup2(struct net *net, in udp4_lib_lookup2()
495 struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, in __udp4_lib_lookup()
587 struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, in udp4_lib_lookup()
[all …]
Droute.c376 static int __net_init ip_rt_do_proc_init(struct net *net) in ip_rt_do_proc_init()
407 static void __net_exit ip_rt_do_proc_exit(struct net *net) in ip_rt_do_proc_exit()
438 void rt_cache_flush(struct net *net) in rt_cache_flush()
488 void __ip_select_ident(struct net *net, struct iphdr *iph, int segs) in __ip_select_ident()
714 struct net *net; in __ip_do_redirect() local
840 struct net *net; in ip_rt_send_redirect() local
906 struct net *net; in ip_error() local
1005 void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, in ipv4_update_pmtu()
1096 void ipv4_redirect(struct sk_buff *skb, struct net *net, in ipv4_redirect()
1156 static int ip_rt_bug(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rt_bug()
[all …]
Dip_forward.c64 static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_forward_finish()
84 struct net *net; in ip_forward() local
Dinet_hashtables.c28 static u32 inet_ehashfn(const struct net *net, const __be32 laddr, in inet_ehashfn()
62 struct net *net, in inet_bind_bucket_create()
171 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
206 struct sock *__inet_lookup_listener(struct net *net, in __inet_lookup_listener()
283 struct sock *__inet_lookup_established(struct net *net, in __inet_lookup_established()
344 struct net *net = sock_net(sk); in __inet_check_established() local
513 struct net *net = sock_net(sk); in __inet_hash_connect() local
Dtcp_metrics.c157 struct net *net; in tcpm_new() local
218 struct net *net, unsigned int hash) in __tcp_get_metrics()
240 struct net *net; in __tcp_get_metrics_req() local
281 struct net *net; in __tcp_get_metrics_tw() local
325 struct net *net; in tcp_get_metrics() local
906 struct net *net = sock_net(skb->sk); in tcp_metrics_nl_dump() local
984 struct net *net = genl_info_net(info); in tcp_metrics_nl_cmd_get() local
1034 static void tcp_metrics_flush_all(struct net *net) in tcp_metrics_flush_all()
1064 struct net *net = genl_info_net(info); in tcp_metrics_nl_cmd_del() local
1132 static int __net_init tcp_net_metrics_init(struct net *net) in tcp_net_metrics_init()
[all …]
Dipip.c136 struct net *net = dev_net(skb->dev); in ipip_err() local
188 struct net *net = dev_net(skb->dev); in ipip_rcv() local
508 static int __net_init ipip_init_net(struct net *net) in ipip_init_net()
513 static void __net_exit ipip_exit_net(struct net *net) in ipip_exit_net()
Dnetfilter.c20 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned int addr_type) in ip_route_me_harder()
106 static int nf_ip_reroute(struct net *net, struct sk_buff *skb, in nf_ip_reroute()
175 static int nf_ip_route(struct net *net, struct dst_entry **dst, in nf_ip_route()
Dudplite.c96 static int __net_init udplite4_proc_init_net(struct net *net) in udplite4_proc_init_net()
101 static void __net_exit udplite4_proc_exit_net(struct net *net) in udplite4_proc_exit_net()
Dip_options.c257 int ip_options_compile(struct net *net, in ip_options_compile()
519 static int ip_options_get_finish(struct net *net, struct ip_options_rcu **optp, in ip_options_get_finish()
534 int ip_options_get_from_user(struct net *net, struct ip_options_rcu **optp, in ip_options_get_from_user()
548 int ip_options_get(struct net *net, struct ip_options_rcu **optp, in ip_options_get()
/linux-4.4.14/net/sctp/
Dsm_statefuns.c217 sctp_disposition_t sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C()
303 sctp_disposition_t sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init()
499 sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack()
649 sctp_disposition_t sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce()
875 sctp_disposition_t sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca()
978 sctp_disposition_t sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3()
1049 sctp_disposition_t sctp_sf_beat_8_3(struct net *net, in sctp_sf_beat_8_3()
1123 sctp_disposition_t sctp_sf_backbeat_8_3(struct net *net, in sctp_sf_backbeat_8_3()
1200 static int sctp_sf_send_restart_abort(struct net *net, union sctp_addr *ssa, in sctp_sf_send_restart_abort()
1269 struct net *net = sock_net(new_asoc->base.sk); in sctp_sf_check_restart_addrs() local
[all …]
Dinput.c79 static inline int sctp_rcv_checksum(struct net *net, struct sk_buff *skb) in sctp_rcv_checksum()
120 struct net *net = dev_net(skb->dev); in sctp_rcv() local
454 struct net *net = sock_net(sk); in sctp_icmp_proto_unreachable() local
470 struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *skb, in sctp_err_lookup()
580 struct net *net = dev_net(skb->dev); in sctp_v4_err() local
711 struct net *net = sock_net(ep->base.sk); in __sctp_hash_endpoint() local
736 struct net *net = sock_net(ep->base.sk); in __sctp_unhash_endpoint() local
760 static struct sctp_endpoint *__sctp_rcv_lookup_endpoint(struct net *net, in __sctp_rcv_lookup_endpoint()
788 struct net *net = sock_net(asoc->base.sk); in __sctp_hash_established() local
819 struct net *net = sock_net(asoc->base.sk); in __sctp_unhash_established() local
[all …]
Dprotocol.c84 static int __net_init sctp_proc_init(struct net *net) in sctp_proc_init()
120 static void sctp_proc_exit(struct net *net) in sctp_proc_exit()
168 static void sctp_get_local_addr_list(struct net *net) in sctp_get_local_addr_list()
185 static void sctp_free_local_addr_list(struct net *net) in sctp_free_local_addr_list()
198 int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, in sctp_copy_local_addr_list()
364 struct net *net = sock_net(&sp->inet.sk); in sctp_v4_available() local
620 struct net *net = (struct net *)arg; in sctp_addr_wq_timeout_handler() local
678 static void sctp_free_addr_wq(struct net *net) in sctp_free_addr_wq()
695 static struct sctp_sockaddr_entry *sctp_addr_wq_lookup(struct net *net, in sctp_addr_wq_lookup()
716 void sctp_addr_wq_mgmt(struct net *net, struct sctp_sockaddr_entry *addr, int cmd) in sctp_addr_wq_mgmt()
[all …]
Dproc.c76 struct net *net = seq->private; in sctp_snmp_seq_show() local
102 int __net_init sctp_snmp_proc_init(struct net *net) in sctp_snmp_proc_init()
115 void sctp_snmp_proc_exit(struct net *net) in sctp_snmp_proc_exit()
266 int __net_init sctp_eps_proc_init(struct net *net) in sctp_eps_proc_init()
279 void sctp_eps_proc_exit(struct net *net) in sctp_eps_proc_exit()
392 int __net_init sctp_assocs_proc_init(struct net *net) in sctp_assocs_proc_init()
405 void sctp_assocs_proc_exit(struct net *net) in sctp_assocs_proc_exit()
528 void sctp_remaddr_proc_exit(struct net *net) in sctp_remaddr_proc_exit()
546 int __net_init sctp_remaddr_proc_init(struct net *net) in sctp_remaddr_proc_init()
Dsysctl.c319 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_hmac_alg() local
365 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_min() local
394 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_rto_max() local
434 struct net *net = current->nsproxy->net_ns; in proc_sctp_do_auth() local
460 int sctp_sysctl_net_register(struct net *net) in sctp_sysctl_net_register()
480 void sctp_sysctl_net_unregister(struct net *net) in sctp_sysctl_net_unregister()
Dendpointola.c61 struct net *net = sock_net(sk); in sctp_endpoint_init() local
301 struct net *net, in sctp_endpoint_is_match()
387 struct net *net = sock_net(ep->base.sk); in sctp_endpoint_is_peeled_off() local
411 struct net *net; in sctp_endpoint_bh_rcv() local
/linux-4.4.14/net/netfilter/
Dnf_conntrack_ecache.c120 struct net *net = nf_ct_net(ct); in nf_ct_deliver_cached_events() local
170 int nf_conntrack_register_notifier(struct net *net, in nf_conntrack_register_notifier()
192 void nf_conntrack_unregister_notifier(struct net *net, in nf_conntrack_unregister_notifier()
206 int nf_ct_expect_register_notifier(struct net *net, in nf_ct_expect_register_notifier()
228 void nf_ct_expect_unregister_notifier(struct net *net, in nf_ct_expect_unregister_notifier()
265 static int nf_conntrack_event_init_sysctl(struct net *net) in nf_conntrack_event_init_sysctl()
294 static void nf_conntrack_event_fini_sysctl(struct net *net) in nf_conntrack_event_fini_sysctl()
303 static int nf_conntrack_event_init_sysctl(struct net *net) in nf_conntrack_event_init_sysctl()
308 static void nf_conntrack_event_fini_sysctl(struct net *net) in nf_conntrack_event_fini_sysctl()
313 int nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init()
[all …]
Dnf_conntrack_timestamp.c43 static int nf_conntrack_tstamp_init_sysctl(struct net *net) in nf_conntrack_tstamp_init_sysctl()
72 static void nf_conntrack_tstamp_fini_sysctl(struct net *net) in nf_conntrack_tstamp_fini_sysctl()
81 static int nf_conntrack_tstamp_init_sysctl(struct net *net) in nf_conntrack_tstamp_init_sysctl()
86 static void nf_conntrack_tstamp_fini_sysctl(struct net *net) in nf_conntrack_tstamp_fini_sysctl()
91 int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init()
97 void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini()
Dnf_conntrack_proto.c39 nf_ct_register_sysctl(struct net *net, in nf_ct_register_sysctl()
162 static struct nf_ip_net *nf_ct_l3proto_net(struct net *net, in nf_ct_l3proto_net()
171 static int nf_ct_l3proto_register_sysctl(struct net *net, in nf_ct_l3proto_register_sysctl()
195 static void nf_ct_l3proto_unregister_sysctl(struct net *net, in nf_ct_l3proto_unregister_sysctl()
241 int nf_ct_l3proto_pernet_register(struct net *net, in nf_ct_l3proto_pernet_register()
272 void nf_ct_l3proto_pernet_unregister(struct net *net, in nf_ct_l3proto_pernet_unregister()
282 static struct nf_proto_net *nf_ct_l4proto_net(struct net *net, in nf_ct_l4proto_net()
296 int nf_ct_l4proto_register_sysctl(struct net *net, in nf_ct_l4proto_register_sysctl()
340 void nf_ct_l4proto_unregister_sysctl(struct net *net, in nf_ct_l4proto_unregister_sysctl()
417 int nf_ct_l4proto_pernet_register(struct net *net, in nf_ct_l4proto_pernet_register()
[all …]
Dnf_conntrack_acct.c65 static int nf_conntrack_acct_init_sysctl(struct net *net) in nf_conntrack_acct_init_sysctl()
94 static void nf_conntrack_acct_fini_sysctl(struct net *net) in nf_conntrack_acct_fini_sysctl()
103 static int nf_conntrack_acct_init_sysctl(struct net *net) in nf_conntrack_acct_init_sysctl()
108 static void nf_conntrack_acct_fini_sysctl(struct net *net) in nf_conntrack_acct_fini_sysctl()
113 int nf_conntrack_acct_pernet_init(struct net *net) in nf_conntrack_acct_pernet_init()
119 void nf_conntrack_acct_pernet_fini(struct net *net) in nf_conntrack_acct_pernet_fini()
Dnf_log.c42 void nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set()
58 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset()
124 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf()
140 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf()
191 void nf_log_packet(struct net *net, in nf_log_packet()
220 void nf_log_trace(struct net *net, in nf_log_trace()
304 struct net *net = seq_file_net(seq); in seq_start() local
316 struct net *net = seq_file_net(s); in seq_next() local
336 struct net *net = seq_file_net(s); in seq_show() local
404 struct net *net = current->nsproxy->net_ns; in nf_log_proc_dostring() local
[all …]
Dnf_conntrack_standalone.c57 struct net *net = seq_file_net(seq); in ct_get_first() local
74 struct net *net = seq_file_net(seq); in ct_get_next() local
301 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local
319 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local
338 struct net *net = seq_file_net(seq); in ct_cpu_seq_show() local
392 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
412 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
418 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
423 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
498 static int nf_conntrack_standalone_init_sysctl(struct net *net) in nf_conntrack_standalone_init_sysctl()
[all …]
Dcore.c65 static struct list_head *nf_find_hook_list(struct net *net, in nf_find_hook_list()
86 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *reg) in nf_register_net_hook()
123 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *reg) in nf_unregister_net_hook()
161 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg, in nf_register_net_hooks()
181 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg, in nf_unregister_net_hooks()
193 struct net *net, *last; in nf_register_hook() local
220 struct net *net; in nf_unregister_hook() local
407 static int nf_register_hook_list(struct net *net) in nf_register_hook_list()
428 static void nf_unregister_hook_list(struct net *net) in nf_unregister_hook_list()
438 static int __net_init netfilter_net_init(struct net *net) in netfilter_net_init()
[all …]
Dnf_conntrack_proto_gre.c64 static inline struct netns_proto_gre *gre_pernet(struct net *net) in gre_pernet()
69 static void nf_ct_gre_keymap_flush(struct net *net) in nf_ct_gre_keymap_flush()
93 static __be16 gre_keymap_lookup(struct net *net, struct nf_conntrack_tuple *t) in gre_keymap_lookup()
118 struct net *net = nf_ct_net(ct); in nf_ct_gre_keymap_add() local
159 struct net *net = nf_ct_net(ct); in nf_ct_gre_keymap_destroy() local
193 struct net *net, struct nf_conntrack_tuple *tuple) in gre_pkt_to_tuple()
244 static unsigned int *gre_get_timeouts(struct net *net) in gre_get_timeouts()
307 struct net *net, void *data) in gre_timeout_nlattr_to_obj()
350 static int gre_init_net(struct net *net, u_int16_t proto) in gre_init_net()
396 static int proto_gre_net_init(struct net *net) in proto_gre_net_init()
[all …]
Dnf_conntrack_core.c79 static bool nf_conntrack_double_lock(struct net *net, unsigned int h1, in nf_conntrack_double_lock()
148 static u32 hash_bucket(u32 hash, const struct net *net) in hash_bucket()
159 static inline u_int32_t hash_conntrack(const struct net *net, in hash_conntrack()
171 struct net *net, in nf_ct_get_tuple()
191 struct net *net, struct nf_conntrack_tuple *tuple) in nf_ct_get_tuplepr()
293 struct nf_conn *nf_ct_tmpl_alloc(struct net *net, in nf_ct_tmpl_alloc()
330 struct net *net = nf_ct_net(ct); in destroy_conntrack() local
370 struct net *net = nf_ct_net(ct); in nf_ct_delete_from_lists() local
448 ____nf_conntrack_find(struct net *net, const struct nf_conntrack_zone *zone, in ____nf_conntrack_find()
484 __nf_conntrack_find_get(struct net *net, const struct nf_conntrack_zone *zone, in __nf_conntrack_find_get()
[all …]
Dnf_conntrack_proto_dccp.c395 static inline struct dccp_net *dccp_pernet(struct net *net) in dccp_pernet()
401 struct net *net, struct nf_conntrack_tuple *tuple) in dccp_pkt_to_tuple()
425 struct net *net = nf_ct_net(ct); in dccp_new() local
473 static unsigned int *dccp_get_timeouts(struct net *net) in dccp_get_timeouts()
483 struct net *net = nf_ct_net(ct); in dccp_packet() local
570 static int dccp_error(struct net *net, struct nf_conn *tmpl, in dccp_error()
717 struct net *net, void *data) in dccp_timeout_nlattr_to_obj()
819 static int dccp_kmemdup_sysctl_table(struct net *net, struct nf_proto_net *pn, in dccp_kmemdup_sysctl_table()
848 static int dccp_init_net(struct net *net, u_int16_t proto) in dccp_init_net()
936 static __net_init int dccp_net_init(struct net *net) in dccp_net_init()
[all …]
Dnf_conntrack_expect.c47 struct net *net = nf_ct_exp_net(exp); in nf_ct_unlink_expect_report() local
91 __nf_ct_expect_find(struct net *net, in __nf_ct_expect_find()
113 nf_ct_expect_find_get(struct net *net, in nf_ct_expect_find_get()
132 nf_ct_find_expectation(struct net *net, in nf_ct_find_expectation()
344 struct net *net = nf_ct_exp_net(exp); in nf_ct_expect_insert() local
395 struct net *net = nf_ct_exp_net(expect); in __nf_ct_expect_check() local
471 struct net *net = seq_file_net(seq); in ct_expect_get_first() local
486 struct net *net = seq_file_net(seq); in ct_expect_get_next() local
595 static int exp_proc_init(struct net *net) in exp_proc_init()
608 static void exp_proc_remove(struct net *net) in exp_proc_remove()
[all …]
Dnf_conntrack_proto_udplite.c44 static inline struct udplite_net *udplite_pernet(struct net *net) in udplite_pernet()
51 struct net *net, in udplite_pkt_to_tuple()
83 static unsigned int *udplite_get_timeouts(struct net *net) in udplite_get_timeouts()
119 static int udplite_error(struct net *net, struct nf_conn *tmpl, in udplite_error()
177 struct net *net, void *data) in udplite_timeout_nlattr_to_obj()
257 static int udplite_init_net(struct net *net, u_int16_t proto) in udplite_init_net()
336 static int udplite_net_init(struct net *net) in udplite_net_init()
358 static void udplite_net_exit(struct net *net) in udplite_net_exit()
Dxt_addrtype.c36 static u32 match_lookup_rt6(struct net *net, const struct net_device *dev, in match_lookup_rt6()
83 static bool match_type6(struct net *net, const struct net_device *dev, in match_type6()
103 addrtype_mt6(struct net *net, const struct net_device *dev, in addrtype_mt6()
119 static inline bool match_type(struct net *net, const struct net_device *dev, in match_type()
128 struct net *net = par->net; in addrtype_mt_v0() local
146 struct net *net = par->net; in addrtype_mt_v1() local
Dnf_conntrack_proto_udp.c34 static inline struct nf_udp_net *udp_pernet(struct net *net) in udp_pernet()
41 struct net *net, in udp_pkt_to_tuple()
75 static unsigned int *udp_get_timeouts(struct net *net) in udp_get_timeouts()
111 static int udp_error(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, in udp_error()
162 struct net *net, void *data) in udp_timeout_nlattr_to_obj()
275 static int udp_init_net(struct net *net, u_int16_t proto) in udp_init_net()
302 static struct nf_proto_net *udp_get_net_proto(struct net *net) in udp_get_net_proto()
Dnf_conntrack_helper.c58 static int nf_conntrack_helper_init_sysctl(struct net *net) in nf_conntrack_helper_init_sysctl()
88 static void nf_conntrack_helper_fini_sysctl(struct net *net) in nf_conntrack_helper_fini_sysctl()
97 static int nf_conntrack_helper_init_sysctl(struct net *net) in nf_conntrack_helper_init_sysctl()
102 static void nf_conntrack_helper_fini_sysctl(struct net *net) in nf_conntrack_helper_fini_sysctl()
191 struct net *net = nf_ct_net(ct); in __nf_ct_try_assign_helper() local
390 struct net *net) in __nf_conntrack_helper_unregister()
440 struct net *net; in nf_conntrack_helper_unregister() local
465 int nf_conntrack_helper_pernet_init(struct net *net) in nf_conntrack_helper_pernet_init()
472 void nf_conntrack_helper_pernet_fini(struct net *net) in nf_conntrack_helper_pernet_fini()
Dnf_conntrack_proto_generic.c41 static inline struct nf_generic_net *generic_pernet(struct net *net) in generic_pernet()
48 struct net *net, struct nf_conntrack_tuple *tuple) in generic_pkt_to_tuple()
71 static unsigned int *generic_get_timeouts(struct net *net) in generic_get_timeouts()
108 struct net *net, void *data) in generic_timeout_nlattr_to_obj()
199 static int generic_init_net(struct net *net, u_int16_t proto) in generic_init_net()
218 static struct nf_proto_net *generic_get_net_proto(struct net *net) in generic_get_net_proto()
Dnfnetlink.c119 int nfnetlink_has_listeners(struct net *net, unsigned int group) in nfnetlink_has_listeners()
125 struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, in nfnetlink_alloc_skb()
132 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_send()
139 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) in nfnetlink_set_err()
145 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_unicast()
155 struct net *net = sock_net(skb->sk); in nfnetlink_rcv_msg() local
282 struct net *net = sock_net(skb->sk); in nfnetlink_rcv_batch() local
482 static int nfnetlink_bind(struct net *net, int group) in nfnetlink_bind()
501 static int __net_init nfnetlink_net_init(struct net *net) in nfnetlink_net_init()
522 struct net *net; in nfnetlink_net_exit_batch() local
Dnf_synproxy_core.c327 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init()
335 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit()
340 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init()
345 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit()
351 static int __net_init synproxy_net_init(struct net *net) in synproxy_net_init()
388 static void __net_exit synproxy_net_exit(struct net *net) in synproxy_net_exit()
Dnf_tables_api.c34 int nft_register_afinfo(struct net *net, struct nft_af_info *afi) in nft_register_afinfo()
59 static struct nft_af_info *nft_afinfo_lookup(struct net *net, int family) in nft_afinfo_lookup()
71 nf_tables_afinfo_lookup(struct net *net, int family, bool autoload) in nf_tables_afinfo_lookup()
92 struct net *net, in nft_ctx_init()
134 struct net *net = read_pnet(&basechain->pnet); in nft_register_basechain() local
146 struct net *net = read_pnet(&basechain->pnet); in nft_unregister_basechain() local
237 nft_rule_is_active(struct net *net, const struct nft_rule *rule) in nft_rule_is_active()
243 nft_rule_is_active_next(struct net *net, const struct nft_rule *rule) in nft_rule_is_active_next()
249 nft_rule_activate_next(struct net *net, struct nft_rule *rule) in nft_rule_activate_next()
256 nft_rule_deactivate_next(struct net *net, struct nft_rule *rule) in nft_rule_deactivate_next()
[all …]
Dnf_conntrack_proto_tcp.c274 static inline struct nf_tcp_net *tcp_pernet(struct net *net) in tcp_pernet()
280 struct net *net, struct nf_conntrack_tuple *tuple) in tcp_pkt_to_tuple()
509 struct net *net = nf_ct_net(ct); in tcp_in_window() local
752 static int tcp_error(struct net *net, struct nf_conn *tmpl, in tcp_error()
806 static unsigned int *tcp_get_timeouts(struct net *net) in tcp_get_timeouts()
820 struct net *net = nf_ct_net(ct); in tcp_packet() local
1109 struct net *net = nf_ct_net(ct); in tcp_new() local
1298 struct net *net, void *data) in tcp_timeout_nlattr_to_obj()
1631 static int tcp_init_net(struct net *net, u_int16_t proto) in tcp_init_net()
1662 static struct nf_proto_net *tcp_get_net_proto(struct net *net) in tcp_get_net_proto()
Dnfnetlink_acct.c54 struct net *net = sock_net(nfnl); in nfnl_acct_new() local
187 struct net *net = sock_net(skb->sk); in nfnl_acct_dump() local
260 struct net *net = sock_net(nfnl); in nfnl_acct_get() local
340 struct net *net = sock_net(nfnl); in nfnl_acct_del() local
399 struct nf_acct *nfnl_acct_find_get(struct net *net, const char *acct_name) in nfnl_acct_find_get()
485 static int __net_init nfnl_acct_net_init(struct net *net) in nfnl_acct_net_init()
492 static void __net_exit nfnl_acct_net_exit(struct net *net) in nfnl_acct_net_exit()
Dnf_nat_core.c86 int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family) in nf_xfrm_me_harder()
121 hash_by_src(const struct net *net, const struct nf_conntrack_tuple *tuple) in hash_by_src()
187 find_appropriate_src(struct net *net, in find_appropriate_src()
305 struct net *net = nf_ct_net(ct); in get_unique_tuple() local
384 struct net *net = nf_ct_net(ct); in nf_nat_setup_info() local
572 struct net *net; in nf_nat_l4proto_clean() local
585 struct net *net; in nf_nat_l3proto_clean() local
822 static int __net_init nf_nat_net_init(struct net *net) in nf_nat_net_init()
832 static void __net_exit nf_nat_net_exit(struct net *net) in nf_nat_net_exit()
Dnfnetlink_queue.c88 static struct nfnl_queue_net *nfnl_queue_pernet(struct net *net) in nfnl_queue_pernet()
299 nfqnl_build_packet_message(struct net *net, struct nfqnl_instance *queue, in nfqnl_build_packet_message()
555 __nfqnl_enqueue_packet(struct net *net, struct nfqnl_instance *queue, in __nfqnl_enqueue_packet()
643 __nfqnl_enqueue_packet_gso(struct net *net, struct nfqnl_instance *queue, in __nfqnl_enqueue_packet_gso()
679 struct net *net = entry->state.net; in nfqnl_enqueue_packet() local
825 nfqnl_dev_drop(struct net *net, int ifindex) in nfqnl_dev_drop()
864 static void nfqnl_nf_hook_drop(struct net *net, struct nf_hook_ops *hook) in nfqnl_nf_hook_drop()
973 struct net *net = sock_net(ctnl); in nfqnl_recv_verdict_batch() local
1048 struct net *net = sock_net(ctnl); in nfqnl_recv_verdict() local
1122 struct net *net = sock_net(ctnl); in nfqnl_recv_config() local
[all …]
Dnfnetlink_log.c65 struct net *net; member
91 static struct nfnl_log_net *nfnl_log_pernet(struct net *net) in nfnl_log_pernet()
155 instance_create(struct net *net, u_int16_t group_num, in instance_create()
327 nfulnl_alloc_skb(struct net *net, u32 peer_portid, unsigned int inst_size, in nfulnl_alloc_skb()
621 nfulnl_log_packet(struct net *net, in nfulnl_log_packet()
825 struct net *net = sock_net(ctnl); in nfulnl_recv_config() local
961 static struct hlist_node *get_first(struct net *net, struct iter_state *st) in get_first()
978 static struct hlist_node *get_next(struct net *net, struct iter_state *st, in get_next()
996 static struct hlist_node *get_idx(struct net *net, struct iter_state *st, in get_idx()
1063 static int __net_init nfnl_log_net_init(struct net *net) in nfnl_log_net_init()
[all …]
Dnf_conntrack_proto_sctp.c153 static inline struct sctp_net *sctp_pernet(struct net *net) in sctp_pernet()
159 struct net *net, struct nf_conntrack_tuple *tuple) in sctp_pkt_to_tuple()
317 static unsigned int *sctp_get_timeouts(struct net *net) in sctp_get_timeouts()
606 struct net *net, void *data) in sctp_timeout_nlattr_to_obj()
813 static int sctp_init_net(struct net *net, u_int16_t proto) in sctp_init_net()
908 static int sctp_net_init(struct net *net) in sctp_net_init()
930 static void sctp_net_exit(struct net *net) in sctp_net_exit()
Dnf_tables_inet.c41 static int __net_init nf_tables_inet_init_net(struct net *net) in nf_tables_inet_init_net()
58 static void __net_exit nf_tables_inet_exit_net(struct net *net) in nf_tables_inet_exit_net()
Dxt_recent.c100 static inline struct recent_net *recent_pernet(struct net *net) in recent_pernet()
240 struct net *net = par->net; in recent_mt() local
641 static int __net_init recent_proc_net_init(struct net *net) in recent_proc_net_init()
651 static void __net_exit recent_proc_net_exit(struct net *net) in recent_proc_net_exit()
670 static inline int recent_proc_net_init(struct net *net) in recent_proc_net_init()
675 static inline void recent_proc_net_exit(struct net *net) in recent_proc_net_exit()
680 static int __net_init recent_net_init(struct net *net) in recent_net_init()
688 static void __net_exit recent_net_exit(struct net *net) in recent_net_exit()
Dnfnetlink_cttimeout.c53 struct net *net, const struct nlattr *attr) in ctnl_timeout_parse_policy()
79 struct net *net = sock_net(skb->sk); in cttimeout_new_timeout() local
380 struct net *net = sock_net(skb->sk); in cttimeout_default_set() local
414 cttimeout_default_fill_info(struct net *net, struct sk_buff *skb, u32 portid, in cttimeout_default_fill_info()
469 struct net *net = sock_net(skb->sk); in cttimeout_default_get() local
/linux-4.4.14/fs/nfs_common/
Dgrace.c28 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace()
66 __state_in_grace(struct net *net, bool open) in __state_in_grace()
81 int locks_in_grace(struct net *net) in locks_in_grace()
87 int opens_in_grace(struct net *net) in opens_in_grace()
94 grace_init_net(struct net *net) in grace_init_net()
103 grace_exit_net(struct net *net) in grace_exit_net()
/linux-4.4.14/fs/nfsd/
Dnfssvc.c176 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads()
188 static int nfsd_init_socks(struct net *net) in nfsd_init_socks()
257 static int nfsd_startup_net(int nrservs, struct net *net) in nfsd_startup_net()
296 static void nfsd_shutdown_net(struct net *net) in nfsd_shutdown_net()
309 static void nfsd_last_thread(struct svc_serv *serv, struct net *net) in nfsd_last_thread()
402 int nfsd_create_serv(struct net *net) in nfsd_create_serv()
432 int nfsd_nrpools(struct net *net) in nfsd_nrpools()
442 int nfsd_get_nrthreads(int n, int *nthreads, struct net *net) in nfsd_get_nrthreads()
455 void nfsd_destroy(struct net *net) in nfsd_destroy()
467 int nfsd_set_nrthreads(int n, int *nthreads, struct net *net) in nfsd_set_nrthreads()
[all …]
Didmap.h46 static inline int nfsd_idmap_init(struct net *net) in nfsd_idmap_init()
50 static inline void nfsd_idmap_shutdown(struct net *net) in nfsd_idmap_shutdown()
Dnfsctl.c136 static int exports_net_open(struct net *net, struct file *file) in exports_net_open()
260 struct net *net = netns(file); in write_unlock_ip() local
436 struct net *net = netns(file); in write_threads() local
487 struct net *net = netns(file); in write_pool_threads() local
686 static ssize_t __write_ports_names(char *buf, struct net *net) in __write_ports_names()
700 static ssize_t __write_ports_addfd(char *buf, struct net *net) in __write_ports_addfd()
734 static ssize_t __write_ports_addxprt(char *buf, struct net *net) in __write_ports_addxprt()
776 struct net *net) in __write_ports()
1157 struct net *net = data; in nfsd_fill_super() local
1175 struct net *net = sb->s_fs_info; in nfsd_umount() local
[all …]
Dnfs4recover.c438 nfsd4_recdir_load(struct net *net) { in nfsd4_recdir_load()
457 nfsd4_init_recdir(struct net *net) in nfsd4_init_recdir()
491 nfsd4_shutdown_recdir(struct net *net) in nfsd4_shutdown_recdir()
502 nfs4_legacy_state_init(struct net *net) in nfs4_legacy_state_init()
520 nfs4_legacy_state_shutdown(struct net *net) in nfs4_legacy_state_shutdown()
528 nfsd4_load_reboot_recovery_data(struct net *net) in nfsd4_load_reboot_recovery_data()
544 nfsd4_legacy_tracking_init(struct net *net) in nfsd4_legacy_tracking_init()
569 nfsd4_legacy_tracking_exit(struct net *net) in nfsd4_legacy_tracking_exit()
795 nfsd4_cld_register_net(struct net *net, struct rpc_pipe *pipe) in nfsd4_cld_register_net()
809 nfsd4_cld_unregister_net(struct net *net, struct rpc_pipe *pipe) in nfsd4_cld_unregister_net()
[all …]
/linux-4.4.14/fs/proc/
Dproc_net.c42 struct net *net; in seq_open_net() local
67 struct net *net; in single_open_net() local
111 struct net *net = NULL; in get_proc_task_net() local
131 struct net *net; in proc_tgid_net_lookup() local
146 struct net *net; in proc_tgid_net_getattr() local
168 struct net *net; in proc_tgid_net_readdir() local
185 static __net_init int proc_net_ns_init(struct net *net) in proc_net_ns_init()
217 static __net_exit void proc_net_ns_exit(struct net *net) in proc_net_ns_exit()
/linux-4.4.14/net/xfrm/
Dxfrm_sysctl.c6 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init()
43 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init()
72 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini()
81 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init()
Dxfrm_policy.c118 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, in __xfrm_dst_lookup()
144 struct net *net = xs_net(x); in xfrm_dst_lookup() local
282 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
349 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash()
355 static void __get_hash_thresh(struct net *net, in __get_hash_thresh()
376 static struct hlist_head *policy_hash_bysel(struct net *net, in policy_hash_bysel()
393 static struct hlist_head *policy_hash_direct(struct net *net, in policy_hash_direct()
409 static void xfrm_dst_hash_transfer(struct net *net, in xfrm_dst_hash_transfer()
466 static void xfrm_bydst_resize(struct net *net, int dir) in xfrm_bydst_resize()
491 static void xfrm_byidx_resize(struct net *net, int total) in xfrm_byidx_resize()
[all …]
Dxfrm_state.c40 static inline unsigned int xfrm_dst_hash(struct net *net, in xfrm_dst_hash()
49 static inline unsigned int xfrm_src_hash(struct net *net, in xfrm_src_hash()
58 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash()
102 struct net *net = container_of(work, struct net, xfrm.state_hash_work); in xfrm_hash_resize() local
358 struct net *net = container_of(work, struct net, xfrm.state_gc_work); in xfrm_state_gc_task() local
468 struct xfrm_state *xfrm_state_alloc(struct net *net) in xfrm_state_alloc()
503 struct net *net = xs_net(x); in __xfrm_state_destroy() local
516 struct net *net = xs_net(x); in __xfrm_state_delete() local
556 xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid) in xfrm_state_flush_secctx_check()
576 xfrm_state_flush_secctx_check(struct net *net, u8 proto, bool task_valid) in xfrm_state_flush_secctx_check()
[all …]
Dxfrm_output.c57 struct net *net = xs_net(x); in xfrm_output_one() local
134 struct net *net = xs_net(skb_dst(skb)->xfrm); in xfrm_output_resume() local
161 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm_output2()
166 static int xfrm_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm_output_gso()
199 struct net *net = dev_net(skb_dst(skb)->dev); in xfrm_output() local
Dxfrm_proc.c53 struct net *net = seq->private; in xfrm_statistics_seq_show() local
75 int __net_init xfrm_proc_init(struct net *net) in xfrm_proc_init()
83 void xfrm_proc_fini(struct net *net) in xfrm_proc_fini()
Dxfrm_user.c528 static struct xfrm_state *xfrm_state_construct(struct net *net, in xfrm_state_construct()
616 struct net *net = sock_net(skb->sk); in xfrm_add_sa() local
654 static struct xfrm_state *xfrm_user_state_lookup(struct net *net, in xfrm_user_state_lookup()
691 struct net *net = sock_net(skb->sk); in xfrm_del_sa() local
896 struct net *net = sock_net(sk); in xfrm_dump_sa_done() local
905 struct net *net = sock_net(skb->sk); in xfrm_dump_sa() local
976 static inline int xfrm_nlmsg_multicast(struct net *net, struct sk_buff *skb, in xfrm_nlmsg_multicast()
996 static int build_spdinfo(struct sk_buff *skb, struct net *net, in build_spdinfo()
1052 struct net *net = sock_net(skb->sk); in xfrm_set_spdinfo() local
1097 struct net *net = sock_net(skb->sk); in xfrm_get_spdinfo() local
[all …]
/linux-4.4.14/net/ipv6/
Dip6_fib.c52 struct net *net; member
98 static int fib6_new_sernum(struct net *net) in fib6_new_sernum()
193 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table()
214 static struct fib6_table *fib6_alloc_table(struct net *net, u32 id) in fib6_alloc_table()
229 struct fib6_table *fib6_new_table(struct net *net, u32 id) in fib6_new_table()
246 struct fib6_table *fib6_get_table(struct net *net, u32 id) in fib6_get_table()
269 static void __net_init fib6_tables_init(struct net *net) in fib6_tables_init()
276 struct fib6_table *fib6_new_table(struct net *net, u32 id) in fib6_new_table()
281 struct fib6_table *fib6_get_table(struct net *net, u32 id) in fib6_get_table()
286 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, in fib6_rule_lookup()
[all …]
Dip6mr.c59 possible_net_t net; member
125 #define ip6mr_for_each_table(mrt, net) \ argument
128 static struct mr6_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table()
139 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup()
226 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init()
258 static void __net_exit ip6mr_rules_exit(struct net *net) in ip6mr_rules_exit()
271 #define ip6mr_for_each_table(mrt, net) \ argument
274 static struct mr6_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table()
279 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup()
286 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init()
[all …]
Dxfrm6_tunnel.c48 static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) in xfrm6_tunnel_pernet()
87 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup()
102 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup()
115 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) in __xfrm6_tunnel_spi_check()
130 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi()
173 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi()
197 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_free_spi()
234 struct net *net = dev_net(skb->dev); in xfrm6_tunnel_rcv() local
298 struct net *net = xs_net(x); in xfrm6_tunnel_destroy() local
325 static int __net_init xfrm6_tunnel_net_init(struct net *net) in xfrm6_tunnel_net_init()
[all …]
Dreassembly.c131 void ip6_expire_frag_queue(struct net *net, struct frag_queue *fq, in ip6_expire_frag_queue()
176 struct net *net; in ip6_frag_expire() local
185 fq_find(struct net *net, __be32 id, const struct in6_addr *src, in fq_find()
215 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue() local
382 struct net *net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_reasm() local
526 struct net *net = dev_net(skb_dst(skb)->dev); in ipv6_frag_rcv() local
629 static int __net_init ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register()
666 static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister()
690 static int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register()
695 static void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister()
[all …]
Droute.c141 static void rt6_uncached_list_flush_dev(struct net *net, struct net_device *dev) in rt6_uncached_list_flush_dev()
327 static struct rt6_info *__ip6_dst_alloc(struct net *net, in __ip6_dst_alloc()
340 static struct rt6_info *ip6_dst_alloc(struct net *net, in ip6_dst_alloc()
465 static inline struct rt6_info *rt6_device_match(struct net *net, in rt6_device_match()
724 struct net *net; in rt6_select() local
758 struct net *net = dev_net(dev); in rt6_route_rcv() local
847 static struct rt6_info *ip6_pol_route_lookup(struct net *net, in ip6_pol_route_lookup()
872 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6, in ip6_route_lookup()
879 struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr, in rt6_lookup()
1009 struct net *net = dev_net(rt->dst.dev); in rt6_make_pcpu_route() local
[all …]
Dip6_flowlabel.c74 static inline struct ip6_flowlabel *__fl_lookup(struct net *net, __be32 label) in __fl_lookup()
85 static struct ip6_flowlabel *fl_lookup(struct net *net, __be32 label) in fl_lookup()
170 static void __net_exit ip6_fl_purge(struct net *net) in ip6_fl_purge()
195 static struct ip6_flowlabel *fl_intern(struct net *net, in fl_intern()
354 fl_create(struct net *net, struct sock *sk, struct in6_flowlabel_req *freq, in fl_create()
515 struct net *net = sock_net(sk); in ipv6_flowlabel_opt() local
583 struct net *net = sock_net(sk); in ipv6_flowlabel_opt() local
706 struct net *net = seq_file_net(seq); in ip6fl_get_first() local
722 struct net *net = seq_file_net(seq); in ip6fl_get_next() local
844 static int __net_init ip6_flowlabel_proc_init(struct net *net) in ip6_flowlabel_proc_init()
[all …]
Dxfrm6_policy.c30 static struct dst_entry *xfrm6_dst_lookup(struct net *net, int tos, int oif, in xfrm6_dst_lookup()
56 static int xfrm6_get_saddr(struct net *net, int oif, in xfrm6_get_saddr()
221 struct net *net = container_of(ops, struct net, xfrm.xfrm6_dst_ops); in xfrm6_garbage_collect() local
328 static int __net_init xfrm6_net_sysctl_init(struct net *net) in xfrm6_net_sysctl_init()
356 static void __net_exit xfrm6_net_sysctl_exit(struct net *net) in xfrm6_net_sysctl_exit()
369 static int inline xfrm6_net_sysctl_init(struct net *net) in xfrm6_net_sysctl_init()
374 static void inline xfrm6_net_sysctl_exit(struct net *net) in xfrm6_net_sysctl_exit()
379 static int __net_init xfrm6_net_init(struct net *net) in xfrm6_net_init()
396 static void __net_exit xfrm6_net_exit(struct net *net) in xfrm6_net_exit()
Doutput_core.c13 static u32 __ipv6_select_ident(struct net *net, u32 hashrnd, in __ipv6_select_ident()
42 void ipv6_proxy_select_ident(struct net *net, struct sk_buff *skb) in ipv6_proxy_select_ident()
65 __be32 ipv6_select_ident(struct net *net, in ipv6_select_ident()
141 int __ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in __ip6_local_out()
157 int ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_local_out()
Dproc.c35 struct net *net = seq->private; in sockstat6_seq_show() local
217 struct net *net = (struct net *)seq->private; in snmp6_seq_show() local
273 struct net *net; in snmp6_register_dev() local
294 struct net *net = dev_net(idev->dev); in snmp6_unregister_dev() local
304 static int __net_init ipv6_proc_init_net(struct net *net) in ipv6_proc_init_net()
325 static void __net_exit ipv6_proc_exit_net(struct net *net) in ipv6_proc_exit_net()
Daddrlabel.c150 static bool __ip6addrlbl_match(struct net *net, in __ip6addrlbl_match()
166 static struct ip6addrlbl_entry *__ipv6_addr_label(struct net *net, in __ipv6_addr_label()
178 u32 ipv6_addr_label(struct net *net, in ipv6_addr_label()
198 static struct ip6addrlbl_entry *ip6addrlbl_alloc(struct net *net, in ip6addrlbl_alloc()
283 static int ip6addrlbl_add(struct net *net, in ip6addrlbl_add()
306 static int __ip6addrlbl_del(struct net *net, in __ip6addrlbl_del()
331 static int ip6addrlbl_del(struct net *net, in ip6addrlbl_del()
349 static int __net_init ip6addrlbl_net_init(struct net *net) in ip6addrlbl_net_init()
369 static void __net_exit ip6addrlbl_net_exit(struct net *net) in ip6addrlbl_net_exit()
409 struct net *net = sock_net(skb->sk); in ip6addrlbl_newdel() local
[all …]
Danycast.c59 struct net *net = sock_net(sk); in ipv6_sock_ac_join() local
147 struct net *net = sock_net(sk); in ipv6_sock_ac_drop() local
178 struct net *net = sock_net(sk); in ipv6_sock_ac_close() local
390 bool ipv6_chk_acast_addr(struct net *net, struct net_device *dev, in ipv6_chk_acast_addr()
411 bool ipv6_chk_acast_addr_src(struct net *net, struct net_device *dev, in ipv6_chk_acast_addr_src()
433 struct net *net = seq_file_net(seq); in ac6_get_first() local
543 int __net_init ac6_proc_init(struct net *net) in ac6_proc_init()
551 void ac6_proc_exit(struct net *net) in ac6_proc_exit()
Dinet6_hashtables.c26 u32 inet6_ehashfn(const struct net *net, in inet6_ehashfn()
51 struct sock *__inet6_lookup_established(struct net *net, in __inet6_lookup_established()
96 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
123 struct sock *inet6_lookup_listener(struct net *net, in inet6_lookup_listener()
179 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, in inet6_lookup()
204 struct net *net = sock_net(sk); in __inet6_check_established() local
Dicmp.c82 static inline struct sock *icmpv6_sk(struct net *net) in icmpv6_sk()
92 struct net *net = dev_net(skb->dev); in icmpv6_err() local
112 static __inline__ struct sock *icmpv6_xmit_lock(struct net *net) in icmpv6_xmit_lock()
176 struct net *net = sock_net(sk); in icmpv6_xrlim_allow() local
324 static struct dst_entry *icmpv6_route_lookup(struct net *net, in icmpv6_route_lookup()
393 struct net *net = dev_net(skb->dev); in icmp6_send() local
555 struct net *net = dev_net(skb->dev); in icmpv6_echo_reply() local
640 struct net *net = dev_net(skb->dev); in icmpv6_notify() local
837 static int __net_init icmpv6_sk_init(struct net *net) in icmpv6_sk_init()
872 static void __net_exit icmpv6_sk_exit(struct net *net) in icmpv6_sk_exit()
[all …]
Daf_inet6.c100 static int inet6_create(struct net *net, struct socket *sock, int protocol, in inet6_create()
262 struct net *net = sock_net(sk); in inet6_bind() local
485 struct net *net = sock_net(sk); in inet6_ioctl() local
722 static int __net_init ipv6_init_mibs(struct net *net) in ipv6_init_mibs()
763 static void ipv6_cleanup_mibs(struct net *net) in ipv6_cleanup_mibs()
772 static int __net_init inet6_net_init(struct net *net) in inet6_net_init()
812 static void __net_exit inet6_net_exit(struct net *net) in inet6_net_exit()
Dip6_vti.c92 vti6_tnl_lookup(struct net *net, const struct in6_addr *remote, in vti6_tnl_lookup()
188 struct net *net = dev_net(dev); in vti6_tnl_create2() local
208 static struct ip6_tnl *vti6_tnl_create(struct net *net, struct __ip6_tnl_parm *p) in vti6_tnl_create()
256 static struct ip6_tnl *vti6_locate(struct net *net, struct __ip6_tnl_parm *p, in vti6_locate()
563 struct net *net = dev_net(skb->dev); in vti6_err() local
650 struct net *net = dev_net(t->dev); in vti6_update() local
722 struct net *net = dev_net(dev); in vti6_ioctl() local
892 struct net *net = dev_net(dev); in vti6_fb_tnl_dev_init() local
934 struct net *net = dev_net(dev); in vti6_newlink() local
950 struct net *net = dev_net(dev); in vti6_dellink() local
[all …]
Dfib6_rules.c32 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, in fib6_rule_lookup()
67 struct net *net = rule->fr_net; in fib6_rule_action() local
199 struct net *net = sock_net(skb->sk); in fib6_rule_configure() local
295 static int __net_init fib6_rules_net_init(struct net *net) in fib6_rules_net_init()
321 static void __net_exit fib6_rules_net_exit(struct net *net) in fib6_rules_net_exit()
Daddrconf.c537 void inet6_netconf_notify_devconf(struct net *net, int type, int ifindex, in inet6_netconf_notify_devconf()
571 struct net *net = sock_net(in_skb->sk); in inet6_netconf_get_devconf() local
632 struct net *net = sock_net(skb->sk); in inet6_netconf_dump_devconf() local
736 static void addrconf_forward_change(struct net *net, __s32 newf) in addrconf_forward_change()
754 struct net *net; in addrconf_fixup_forwarding() local
789 static void addrconf_linkdown_change(struct net *net, __s32 newf) in addrconf_linkdown_change()
811 struct net *net; in addrconf_fixup_linkdown() local
1307 static int ipv6_get_saddr_eval(struct net *net, in ipv6_get_saddr_eval()
1441 static int __ipv6_dev_get_saddr(struct net *net, in __ipv6_dev_get_saddr()
1520 int ipv6_dev_get_saddr(struct net *net, const struct net_device *dst_dev, in ipv6_dev_get_saddr()
[all …]
Dip6_tunnel.c231 ip6_tnl_lookup(struct net *net, const struct in6_addr *remote, const struct in6_addr *local) in ip6_tnl_lookup()
340 struct net *net = dev_net(dev); in ip6_tnl_create2() local
373 static struct ip6_tnl *ip6_tnl_create(struct net *net, struct __ip6_tnl_parm *p) in ip6_tnl_create()
421 static struct ip6_tnl *ip6_tnl_locate(struct net *net, in ip6_tnl_locate()
458 struct net *net = t->net; in ip6_tnl_dev_uninit() local
828 struct net *net = t->net; in ip6_tnl_rcv_ctl() local
985 struct net *net = t->net; in ip6_tnl_xmit_ctl() local
1038 struct net *net = t->net; in ip6_tnl_xmit2() local
1378 struct net *net = t->net; in ip6_tnl_update() local
1461 struct net *net = t->net; in ip6_tnl_ioctl() local
[all …]
Dip6_input.c50 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish()
70 struct net *net = dev_net(skb->dev); in ipv6_rcv() local
202 static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_input_finish()
Dipcomp6.c59 struct net *net = dev_net(skb->dev); in ipcomp6_err() local
87 struct net *net = xs_net(x); in ipcomp6_tunnel_create() local
123 struct net *net = xs_net(x); in ipcomp6_tunnel_attach() local
Dudp.c56 static u32 udp6_ehashfn(const struct net *net, in udp6_ehashfn()
107 static u32 udp6_portaddr_hash(const struct net *net, in udp6_portaddr_hash()
144 static inline int compute_score(struct sock *sk, struct net *net, in compute_score()
191 static inline int compute_score2(struct sock *sk, struct net *net, in compute_score2()
235 static struct sock *udp6_lib_lookup2(struct net *net, in udp6_lib_lookup2()
287 struct sock *__udp6_lib_lookup(struct net *net, in __udp6_lib_lookup()
383 struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, in udp6_lib_lookup()
548 struct net *net = dev_net(skb->dev); in __udp6_lib_err() local
720 static bool __udp_v6_is_mcast_sock(struct net *net, struct sock *sk, in __udp_v6_is_mcast_sock()
785 static int __udp6_lib_mcast_deliver(struct net *net, struct sk_buff *skb, in __udp6_lib_mcast_deliver()
[all …]
Dip6_output.c60 static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_finish_output2()
124 static int ip6_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_finish_output()
134 int ip6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_output()
160 struct net *net = sock_net(sk); in ip6_xmit() local
332 static inline int ip6_forward_finish(struct net *net, struct sock *sk, in ip6_forward_finish()
383 struct net *net = dev_net(dst->dev); in ip6_forward() local
559 int ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in ip6_fragment()
560 int (*output)(struct net *, struct sock *, struct sk_buff *)) in ip6_fragment()
904 static int ip6_dst_lookup_tail(struct net *net, const struct sock *sk, in ip6_dst_lookup_tail()
1020 int ip6_dst_lookup(struct net *net, struct sock *sk, struct dst_entry **dst, in ip6_dst_lookup()
[all …]
Dsit.c93 static struct ip_tunnel *ipip6_tunnel_lookup(struct net *net, in ipip6_tunnel_lookup()
194 struct net *net = dev_net(dev); in ipip6_tunnel_create() local
221 static struct ip_tunnel *ipip6_tunnel_locate(struct net *net, in ipip6_tunnel_locate()
1083 struct net *net = t->net; in ipip6_tunnel_update() local
1143 struct net *net = t->net; in ipip6_tunnel_ioctl() local
1401 struct net *net = dev_net(dev); in ipip6_fb_tunnel_init() local
1545 struct net *net = dev_net(dev); in ipip6_newlink() local
1584 struct net *net = t->net; in ipip6_changelink() local
1731 struct net *net = dev_net(dev); in ipip6_dellink() local
1765 static void __net_exit sit_destroy_tunnels(struct net *net, in sit_destroy_tunnels()
[all …]
Dxfrm6_output.c135 static int __xfrm6_output_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in __xfrm6_output_finish()
142 static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in __xfrm6_output()
182 int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb) in xfrm6_output()
Dsysctl_net_ipv6.c112 static int __net_init ipv6_sysctl_net_init(struct net *net) in ipv6_sysctl_net_init()
172 static void __net_exit ipv6_sysctl_net_exit(struct net *net) in ipv6_sysctl_net_exit()
Dnetfilter.c21 int ip6_route_me_harder(struct net *net, struct sk_buff *skb) in ip6_route_me_harder()
95 static int nf_ip6_reroute(struct net *net, struct sk_buff *skb, in nf_ip6_reroute()
110 static int nf_ip6_route(struct net *net, struct dst_entry **dst, in nf_ip6_route()
/linux-4.4.14/include/net/netfilter/
Dnf_conntrack_timestamp.h29 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local
40 static inline bool nf_ct_tstamp_enabled(struct net *net) in nf_ct_tstamp_enabled()
45 static inline void nf_ct_set_tstamp(struct net *net, bool enable) in nf_ct_set_tstamp()
57 static inline int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init()
62 static inline void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini()
Dnf_conntrack_ecache.h37 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
80 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
100 struct net *net = nf_ct_net(ct); in nf_conntrack_eventmask_report() local
181 struct net *net = nf_ct_exp_net(exp); in nf_ct_expect_event_report() local
219 static inline void nf_conntrack_ecache_delayed_work(struct net *net) in nf_conntrack_ecache_delayed_work()
227 static inline void nf_conntrack_ecache_work(struct net *net) in nf_conntrack_ecache_work()
255 static inline int nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init()
260 static inline void nf_conntrack_ecache_pernet_fini(struct net *net) in nf_conntrack_ecache_pernet_fini()
273 static inline void nf_conntrack_ecache_delayed_work(struct net *net) in nf_conntrack_ecache_delayed_work()
277 static inline void nf_conntrack_ecache_work(struct net *net) in nf_conntrack_ecache_work()
Dnf_conntrack_acct.h35 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local
53 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled()
59 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct()
Dnf_conntrack_labels.h30 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
62 static inline int nf_connlabels_get(struct net *net, unsigned int n_bits) { return 0; } in nf_connlabels_get()
63 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put()
/linux-4.4.14/fs/lockd/
Dsvc.c101 static void set_grace_period(struct net *net) in set_grace_period()
114 struct net *net = &init_net; in restart_grace() local
180 struct net *net, const int family, in create_lockd_listener()
193 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family()
215 static int make_socks(struct svc_serv *serv, struct net *net) in make_socks()
239 static int lockd_up_net(struct svc_serv *serv, struct net *net) in lockd_up_net()
263 static void lockd_down_net(struct svc_serv *serv, struct net *net) in lockd_down_net()
370 int lockd_up(struct net *net) in lockd_up()
412 lockd_down(struct net *net) in lockd_down()
588 static int lockd_init_net(struct net *net) in lockd_init_net()
[all …]
Dhost.c61 struct net *net; /* network namespace to bind */ member
216 struct net *net) in nlmclnt_lookup_host()
330 struct net *net = SVC_NET(rqstp); in nlmsvc_lookup_host() local
544 void nlm_host_rebooted(const struct net *net, const struct nlm_reboot *info) in nlm_host_rebooted()
570 static void nlm_complain_hosts(struct net *net) in nlm_complain_hosts()
599 nlm_shutdown_hosts_net(struct net *net) in nlm_shutdown_hosts_net()
642 nlm_gc_hosts(struct net *net) in nlm_gc_hosts()
/linux-4.4.14/drivers/rapidio/
Drio-scan.c62 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc()
88 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve()
107 static void rio_destid_free(struct rio_net *net, u16 destid) in rio_destid_free()
121 static u16 rio_destid_first(struct rio_net *net) in rio_destid_first()
141 static u16 rio_destid_next(struct rio_net *net, u16 from) in rio_destid_next()
210 static int rio_clear_locks(struct rio_net *net) in rio_clear_locks()
341 static struct rio_dev *rio_setup_device(struct rio_net *net, in rio_setup_device()
564 static int rio_enum_peer(struct rio_net *net, struct rio_mport *port, in rio_enum_peer()
772 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid, in rio_disc_peer()
881 struct rio_net *net; in rio_alloc_net() local
[all …]
/linux-4.4.14/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c88 static int rtw_android_get_rssi(struct net_device *net, char *command, in rtw_android_get_rssi()
105 static int rtw_android_get_link_speed(struct net_device *net, char *command, in rtw_android_get_link_speed()
116 static int rtw_android_get_macaddr(struct net_device *net, char *command, in rtw_android_get_macaddr()
123 static int android_set_cntry(struct net_device *net, char *command, in android_set_cntry()
134 static int android_get_p2p_addr(struct net_device *net, char *command, in android_get_p2p_addr()
142 static int rtw_android_set_block(struct net_device *net, char *command, in rtw_android_set_block()
148 int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) in rtw_android_priv_cmd()
/linux-4.4.14/net/openvswitch/
Dconntrack.h44 static inline void ovs_ct_init(struct net *net) { } in ovs_ct_init()
46 static inline void ovs_ct_exit(struct net *net) { } in ovs_ct_exit()
48 static inline bool ovs_ct_verify(struct net *net, int attr) in ovs_ct_verify()
53 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action()
66 static inline int ovs_ct_execute(struct net *net, struct sk_buff *skb, in ovs_ct_execute()
Dconntrack.c304 static int handle_fragments(struct net *net, struct sw_flow_key *key, in handle_fragments()
360 ovs_ct_expect_find(struct net *net, const struct nf_conntrack_zone *zone, in ovs_ct_expect_find()
371 static bool skb_nfct_cached(const struct net *net, const struct sk_buff *skb, in skb_nfct_cached()
395 static int __ovs_ct_lookup(struct net *net, struct sw_flow_key *key, in __ovs_ct_lookup()
432 static int ovs_ct_lookup(struct net *net, struct sw_flow_key *key, in ovs_ct_lookup()
456 static int ovs_ct_commit(struct net *net, struct sw_flow_key *key, in ovs_ct_commit()
495 int ovs_ct_execute(struct net *net, struct sk_buff *skb, in ovs_ct_execute()
650 bool ovs_ct_verify(struct net *net, enum ovs_key_attr attr) in ovs_ct_verify()
670 int ovs_ct_copy_action(struct net *net, const struct nlattr *attr, in ovs_ct_copy_action()
771 void ovs_ct_init(struct net *net) in ovs_ct_init()
[all …]
/linux-4.4.14/drivers/usb/gadget/function/
Du_ether.c62 struct net_device *net; member
144 static int ueth_change_mtu(struct net_device *net, int new_mtu) in ueth_change_mtu()
163 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo()
488 struct net_device *net) in eth_start_xmit()
642 static int eth_open(struct net_device *net) in eth_open()
660 static int eth_stop(struct net_device *net) in eth_stop()
773 struct net_device *net; in gether_setup_name() local
835 struct net_device *net; in gether_setup_name_default() local
870 int gether_register_netdev(struct net_device *net) in gether_register_netdev()
908 void gether_set_gadget(struct net_device *net, struct usb_gadget *g) in gether_set_gadget()
[all …]
/linux-4.4.14/include/linux/
Dnetfilter.h57 struct net *net; member
69 struct net *net, in nf_hook_state_init()
70 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init()
172 struct net *net, in nf_hook_thresh()
177 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in nf_hook_thresh()
192 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook()
195 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook()
218 NF_HOOK_THRESH(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_THRESH()
221 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in NF_HOOK_THRESH()
231 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
[all …]
/linux-4.4.14/net/sunrpc/
Dstats.c243 do_register(struct net *net, const char *name, void *data, in do_register()
254 rpc_proc_register(struct net *net, struct rpc_stat *statp) in rpc_proc_register()
261 rpc_proc_unregister(struct net *net, const char *name) in rpc_proc_unregister()
271 svc_proc_register(struct net *net, struct svc_stat *statp, const struct file_operations *fops) in svc_proc_register()
278 svc_proc_unregister(struct net *net, const char *name) in svc_proc_unregister()
287 int rpc_proc_init(struct net *net) in rpc_proc_init()
300 void rpc_proc_exit(struct net *net) in rpc_proc_exit()
Daddr.c160 static int rpc_parse_scope_id(struct net *net, const char *buf, in rpc_parse_scope_id()
202 static size_t rpc_pton6(struct net *net, const char *buf, const size_t buflen, in rpc_pton6()
225 static size_t rpc_pton6(struct net *net, const char *buf, const size_t buflen, in rpc_pton6()
247 size_t rpc_pton(struct net *net, const char *buf, const size_t buflen, in rpc_pton()
313 size_t rpc_uaddr2sockaddr(struct net *net, const char *uaddr, in rpc_uaddr2sockaddr()
Dsunrpc_syms.c30 static __net_init int sunrpc_init_net(struct net *net) in sunrpc_init_net()
66 static __net_exit void sunrpc_exit_net(struct net *net) in sunrpc_exit_net()
Dsvc.c358 int svc_rpcb_setup(struct svc_serv *serv, struct net *net) in svc_rpcb_setup()
372 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net) in svc_rpcb_cleanup()
396 int svc_bind(struct svc_serv *serv, struct net *net) in svc_bind()
495 void svc_shutdown_net(struct svc_serv *serv, struct net *net) in svc_shutdown_net()
806 static int __svc_rpcb_register4(struct net *net, const u32 program, in __svc_rpcb_register4()
854 static int __svc_rpcb_register6(struct net *net, const u32 program, in __svc_rpcb_register6()
898 static int __svc_register(struct net *net, const char *progname, in __svc_register()
931 int svc_register(const struct svc_serv *serv, struct net *net, in svc_register()
989 static void __svc_unregister(struct net *net, const u32 program, const u32 version, in __svc_unregister()
1015 static void svc_unregister(const struct svc_serv *serv, struct net *net) in svc_unregister()
Drpcb_clnt.c164 static int rpcb_get_local(struct net *net) in rpcb_get_local()
178 void rpcb_put_local(struct net *net) in rpcb_put_local()
206 static void rpcb_set_local(struct net *net, struct rpc_clnt *clnt, in rpcb_set_local()
228 static int rpcb_create_local_unix(struct net *net) in rpcb_create_local_unix()
286 static int rpcb_create_local_net(struct net *net) in rpcb_create_local_net()
338 int rpcb_create_local(struct net *net) in rpcb_create_local()
358 static struct rpc_clnt *rpcb_create(struct net *net, const char *nodename, in rpcb_create()
445 int rpcb_register(struct net *net, u32 prog, u32 vers, int prot, unsigned short port) in rpcb_register()
593 int rpcb_v4_register(struct net *net, const u32 program, const u32 version, in rpcb_v4_register()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c32 static inline struct nf_icmp_net *icmpv6_pernet(struct net *net) in icmpv6_pernet()
39 struct net *net, in icmpv6_pkt_to_tuple()
97 static unsigned int *icmpv6_get_timeouts(struct net *net) in icmpv6_get_timeouts()
145 icmpv6_error_message(struct net *net, struct nf_conn *tmpl, in icmpv6_error_message()
198 icmpv6_error(struct net *net, struct nf_conn *tmpl, in icmpv6_error()
293 struct net *net, void *data) in icmpv6_timeout_nlattr_to_obj()
354 static int icmpv6_init_net(struct net *net, u_int16_t proto) in icmpv6_init_net()
364 static struct nf_proto_net *icmpv6_get_net_proto(struct net *net) in icmpv6_get_net_proto()
Dnf_conntrack_reasm.c97 static int nf_ct_frag6_sysctl_register(struct net *net) in nf_ct_frag6_sysctl_register()
131 static void __net_exit nf_ct_frags6_sysctl_unregister(struct net *net) in nf_ct_frags6_sysctl_unregister()
142 static int nf_ct_frag6_sysctl_register(struct net *net) in nf_ct_frag6_sysctl_register()
146 static void __net_exit nf_ct_frags6_sysctl_unregister(struct net *net) in nf_ct_frags6_sysctl_unregister()
182 struct net *net; in nf_ct_frag6_expire() local
191 static inline struct frag_queue *fq_find(struct net *net, __be32 id, in fq_find()
567 struct sk_buff *nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user) in nf_ct_frag6_gather()
650 static int nf_ct_net_init(struct net *net) in nf_ct_net_init()
666 static void nf_ct_net_exit(struct net *net) in nf_ct_net_exit()
Dnf_dup_ipv6.c22 static bool nf_dup_ipv6_route(struct net *net, struct sk_buff *skb, in nf_dup_ipv6_route()
49 void nf_dup_ipv6(struct net *net, struct sk_buff *skb, unsigned int hooknum, in nf_dup_ipv6()
Dip6_tables.c278 static void trace_packet(struct net *net, in trace_packet()
589 static void cleanup_match(struct xt_entry_match *m, struct net *net) in cleanup_match()
644 static int check_target(struct ip6t_entry *e, struct net *net, const char *name) in check_target()
670 find_check_entry(struct ip6t_entry *e, struct net *net, const char *name, in find_check_entry()
797 static void cleanup_entry(struct ip6t_entry *e, struct net *net) in cleanup_entry()
822 translate_table(struct net *net, struct xt_table_info *newinfo, void *entry0, in translate_table()
1096 static int get_info(struct net *net, void __user *user, in get_info()
1158 get_entries(struct net *net, struct ip6t_get_entries __user *uptr, in get_entries()
1198 __do_replace(struct net *net, const char *name, unsigned int valid_hooks, in __do_replace()
1271 do_replace(struct net *net, const void __user *user, unsigned int len) in do_replace()
[all …]
Dip6table_raw.c30 static int __net_init ip6table_raw_net_init(struct net *net) in ip6table_raw_net_init()
43 static void __net_exit ip6table_raw_net_exit(struct net *net) in ip6table_raw_net_exit()
Dip6table_security.c47 static int __net_init ip6table_security_net_init(struct net *net) in ip6table_security_net_init()
60 static void __net_exit ip6table_security_net_exit(struct net *net) in ip6table_security_net_exit()
Dip6table_filter.c47 static int __net_init ip6table_filter_net_init(struct net *net) in ip6table_filter_net_init()
64 static void __net_exit ip6table_filter_net_exit(struct net *net) in ip6table_filter_net_exit()
Dnf_tables_ipv6.c61 static int nf_tables_ipv6_init_net(struct net *net) in nf_tables_ipv6_init_net()
78 static void nf_tables_ipv6_exit_net(struct net *net) in nf_tables_ipv6_exit_net()
Dnf_log_ipv6.c344 static void nf_log_ip6_packet(struct net *net, u_int8_t pf, in nf_log_ip6_packet()
380 static int __net_init nf_log_ipv6_net_init(struct net *net) in nf_log_ipv6_net_init()
386 static void __net_exit nf_log_ipv6_net_exit(struct net *net) in nf_log_ipv6_net_exit()
/linux-4.4.14/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c27 static inline struct nf_icmp_net *icmp_pernet(struct net *net) in icmp_pernet()
33 struct net *net, struct nf_conntrack_tuple *tuple) in icmp_pkt_to_tuple()
84 static unsigned int *icmp_get_timeouts(struct net *net) in icmp_get_timeouts()
130 icmp_error_message(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, in icmp_error_message()
182 icmp_error(struct net *net, struct nf_conn *tmpl, in icmp_error()
286 struct net *net, void *data) in icmp_timeout_nlattr_to_obj()
375 static int icmp_init_net(struct net *net, u_int16_t proto) in icmp_init_net()
394 static struct nf_proto_net *icmp_get_net_proto(struct net *net) in icmp_get_net_proto()
Dnf_conntrack_l3proto_ipv4_compat.c34 struct net *net = seq_file_net(seq); in ct_get_first() local
52 struct net *net = seq_file_net(seq); in ct_get_next() local
223 struct net *net = seq_file_net(seq); in ct_expect_get_first() local
239 struct net *net = seq_file_net(seq); in ct_expect_get_next() local
331 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local
349 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local
368 struct net *net = seq_file_net(seq); in ct_cpu_seq_show() local
422 static int __net_init ip_conntrack_net_init(struct net *net) in ip_conntrack_net_init()
449 static void __net_exit ip_conntrack_net_exit(struct net *net) in ip_conntrack_net_exit()
Dip_tables.c249 static void trace_packet(struct net *net, in trace_packet()
577 static void cleanup_match(struct xt_entry_match *m, struct net *net) in cleanup_match()
632 static int check_target(struct ipt_entry *e, struct net *net, const char *name) in check_target()
657 find_check_entry(struct ipt_entry *e, struct net *net, const char *name, in find_check_entry()
786 cleanup_entry(struct ipt_entry *e, struct net *net) in cleanup_entry()
810 translate_table(struct net *net, struct xt_table_info *newinfo, void *entry0, in translate_table()
1084 static int get_info(struct net *net, void __user *user, in get_info()
1146 get_entries(struct net *net, struct ipt_get_entries __user *uptr, in get_entries()
1186 __do_replace(struct net *net, const char *name, unsigned int valid_hooks, in __do_replace()
1259 do_replace(struct net *net, const void __user *user, unsigned int len) in do_replace()
[all …]
Dnf_log_arp.c80 static void nf_log_arp_packet(struct net *net, u_int8_t pf, in nf_log_arp_packet()
112 static int __net_init nf_log_arp_net_init(struct net *net) in nf_log_arp_net_init()
118 static void __net_exit nf_log_arp_net_exit(struct net *net) in nf_log_arp_net_exit()
Dnf_dup_ipv4.c26 static bool nf_dup_ipv4_route(struct net *net, struct sk_buff *skb, in nf_dup_ipv4_route()
53 void nf_dup_ipv4(struct net *net, struct sk_buff *skb, unsigned int hooknum, in nf_dup_ipv4()
Dnf_tables_arp.c41 static int nf_tables_arp_init_net(struct net *net) in nf_tables_arp_init_net()
58 static void nf_tables_arp_exit_net(struct net *net) in nf_tables_arp_exit_net()
Darptable_filter.c38 static int __net_init arptable_filter_net_init(struct net *net) in arptable_filter_net_init()
51 static void __net_exit arptable_filter_net_exit(struct net *net) in arptable_filter_net_exit()
Diptable_security.c54 static int __net_init iptable_security_net_init(struct net *net) in iptable_security_net_init()
67 static void __net_exit iptable_security_net_exit(struct net *net) in iptable_security_net_exit()
Diptable_raw.c37 static int __net_init iptable_raw_net_init(struct net *net) in iptable_raw_net_init()
50 static void __net_exit iptable_raw_net_exit(struct net *net) in iptable_raw_net_exit()
Diptable_filter.c54 static int __net_init iptable_filter_net_init(struct net *net) in iptable_filter_net_init()
71 static void __net_exit iptable_filter_net_exit(struct net *net) in iptable_filter_net_exit()
Dnf_log_ipv4.c312 static void nf_log_ip_packet(struct net *net, u_int8_t pf, in nf_log_ip_packet()
348 static int __net_init nf_log_ipv4_net_init(struct net *net) in nf_log_ipv4_net_init()
354 static void __net_exit nf_log_ipv4_net_exit(struct net *net) in nf_log_ipv4_net_exit()
Dnf_tables_ipv4.c62 static int nf_tables_ipv4_init_net(struct net *net) in nf_tables_ipv4_init_net()
79 static void nf_tables_ipv4_exit_net(struct net *net) in nf_tables_ipv4_exit_net()
/linux-4.4.14/include/linux/sunrpc/
Dstats.h46 static inline int rpc_proc_init(struct net *net) in rpc_proc_init()
51 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit()
72 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register()
73 static inline void rpc_proc_unregister(struct net *net, const char *p) {} in rpc_proc_unregister()
76 static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, in svc_proc_register()
78 static inline void svc_proc_unregister(struct net *net, const char *p) {} in svc_proc_unregister()
/linux-4.4.14/fs/nfs/blocklayout/
Drpc_pipefs.c56 struct net *net = server->nfs_client->cl_net; in bl_resolve_deviceid() local
169 struct net *net = sb->s_fs_info; in rpc_pipefs_event() local
207 static struct dentry *nfs4blocklayout_register_net(struct net *net, in nfs4blocklayout_register_net()
221 static void nfs4blocklayout_unregister_net(struct net *net, in nfs4blocklayout_unregister_net()
233 static int nfs4blocklayout_net_init(struct net *net) in nfs4blocklayout_net_init()
252 static void nfs4blocklayout_net_exit(struct net *net) in nfs4blocklayout_net_exit()
/linux-4.4.14/net/
Dsysctl_net.c44 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_permissions() local
67 static int __net_init sysctl_net_init(struct net *net) in sysctl_net_init()
73 static void __net_exit sysctl_net_exit(struct net *net) in sysctl_net_exit()
107 struct ctl_table_header *register_net_sysctl(struct net *net, in register_net_sysctl()
/linux-4.4.14/net/mpls/
Daf_mpls.c39 static struct mpls_route *mpls_route_input_rcu(struct net *net, unsigned index) in mpls_route_input_rcu()
226 struct net *net = dev_net(dev); in mpls_forward() local
388 static void mpls_notify_route(struct net *net, unsigned index, in mpls_notify_route()
402 static void mpls_route_update(struct net *net, unsigned index, in mpls_route_update()
421 static unsigned find_free_label(struct net *net) in find_free_label()
438 static struct net_device *inet_fib_lookup_dev(struct net *net, in inet_fib_lookup_dev()
458 static struct net_device *inet_fib_lookup_dev(struct net *net, in inet_fib_lookup_dev()
466 static struct net_device *inet6_fib_lookup_dev(struct net *net, in inet6_fib_lookup_dev()
490 static struct net_device *inet6_fib_lookup_dev(struct net *net, in inet6_fib_lookup_dev()
497 static struct net_device *find_outdev(struct net *net, in find_outdev()
[all …]
/linux-4.4.14/net/wireless/
Dwext-proc.c92 struct net *net = seq_file_net(seq); in wireless_dev_seq_start() local
109 struct net *net = seq_file_net(seq); in wireless_dev_seq_next() local
143 int __net_init wext_proc_init(struct net *net) in wext_proc_init()
153 void __net_exit wext_proc_exit(struct net *net) in wext_proc_exit()
Dwext-core.c348 struct net *net; in wireless_nlevent_flush() local
379 static int __net_init wext_pernet_init(struct net *net) in wext_pernet_init()
385 static void __net_exit wext_pernet_exit(struct net *net) in wext_pernet_exit()
914 static int wireless_process_ioctl(struct net *net, struct ifreq *ifr, in wireless_process_ioctl()
998 static int wext_ioctl_dispatch(struct net *net, struct ifreq *ifr, in wext_ioctl_dispatch()
1060 int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl()
1108 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl()
/linux-4.4.14/net/phonet/
Dpn_dev.c49 static struct phonet_net *phonet_pernet(struct net *net) in phonet_pernet()
56 struct phonet_device_list *phonet_device_list(struct net *net) in phonet_device_list()
124 struct net_device *phonet_device_get(struct net *net) in phonet_device_get()
222 int phonet_address_lookup(struct net *net, u8 addr) in phonet_address_lookup()
319 static int __net_init phonet_init_net(struct net *net) in phonet_init_net()
332 static void __net_exit phonet_exit_net(struct net *net) in phonet_exit_net()
404 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr) in phonet_route_get_rcu()
415 struct net_device *phonet_route_output(struct net *net, u8 daddr) in phonet_route_output()
Dsocket.c77 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa()
115 void pn_deliver_sock_broadcast(struct net *net, struct sk_buff *skb) in pn_deliver_sock_broadcast()
494 struct net *net = sock_net(sk); in pn_sock_get_port() local
542 struct net *net = seq_file_net(seq); in pn_sock_get_idx() local
562 struct net *net = seq_file_net(seq); in pn_sock_get_next() local
649 struct sock *pn_find_sock_by_res(struct net *net, u8 res) in pn_find_sock_by_res()
731 struct net *net = seq_file_net(seq); in pn_res_get_idx() local
749 struct net *net = seq_file_net(seq); in pn_res_get_next() local
/linux-4.4.14/net/ieee802154/6lowpan/
Dreassembly.c86 struct net *net; in lowpan_frag_expire() local
103 fq_find(struct net *net, const struct lowpan_802154_cb *cb, in fq_find()
409 struct net *net = dev_net(skb->dev); in lowpan_frag_rcv() local
493 static int __net_init lowpan_frags_ns_sysctl_register(struct net *net) in lowpan_frags_ns_sysctl_register()
533 static void __net_exit lowpan_frags_ns_sysctl_unregister(struct net *net) in lowpan_frags_ns_sysctl_unregister()
560 static inline int lowpan_frags_ns_sysctl_register(struct net *net) in lowpan_frags_ns_sysctl_register()
565 static inline void lowpan_frags_ns_sysctl_unregister(struct net *net) in lowpan_frags_ns_sysctl_unregister()
579 static int __net_init lowpan_frags_init_net(struct net *net) in lowpan_frags_init_net()
598 static void __net_exit lowpan_frags_exit_net(struct net *net) in lowpan_frags_exit_net()
/linux-4.4.14/drivers/net/usb/
Dsr9800.c296 static void sr_set_multicast(struct net_device *net) in sr_set_multicast()
336 static int sr_mdio_read(struct net_device *net, int phy_id, int loc) in sr_mdio_read()
355 sr_mdio_write(struct net_device *net, int phy_id, int loc, int val) in sr_mdio_write()
400 sr_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) in sr_get_wol()
419 sr_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) in sr_set_wol()
436 static int sr_get_eeprom_len(struct net_device *net) in sr_get_eeprom_len()
444 static int sr_get_eeprom(struct net_device *net, in sr_get_eeprom()
470 static void sr_get_drvinfo(struct net_device *net, in sr_get_drvinfo()
479 static u32 sr_get_link(struct net_device *net) in sr_get_link()
486 static int sr_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in sr_ioctl()
[all …]
Dipheth.c142 struct net_device *net; member
326 struct net_device *net = dev->net; in ipheth_get_macaddr() local
373 static int ipheth_open(struct net_device *net) in ipheth_open()
394 static int ipheth_close(struct net_device *net) in ipheth_close()
403 static int ipheth_tx(struct sk_buff *skb, struct net_device *net) in ipheth_tx()
445 static void ipheth_tx_timeout(struct net_device *net) in ipheth_tx_timeout()
454 static u32 ipheth_ethtool_op_get_link(struct net_device *net) in ipheth_ethtool_op_get_link()
Dasix_common.c358 void asix_set_multicast(struct net_device *net) in asix_set_multicast()
429 void asix_get_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) in asix_get_wol()
447 int asix_set_wol(struct net_device *net, struct ethtool_wolinfo *wolinfo) in asix_set_wol()
464 int asix_get_eeprom_len(struct net_device *net) in asix_get_eeprom_len()
469 int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_get_eeprom()
504 int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_set_eeprom()
585 void asix_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *info) in asix_get_drvinfo()
593 int asix_set_mac_address(struct net_device *net, void *p) in asix_set_mac_address()
Dusbnet.c377 int usbnet_change_mtu (struct net_device *net, int new_mtu) in usbnet_change_mtu()
795 int usbnet_stop (struct net_device *net) in usbnet_stop()
857 int usbnet_open (struct net_device *net) in usbnet_open()
946 int usbnet_get_settings (struct net_device *net, struct ethtool_cmd *cmd) in usbnet_get_settings()
957 int usbnet_set_settings (struct net_device *net, struct ethtool_cmd *cmd) in usbnet_set_settings()
979 u32 usbnet_get_link (struct net_device *net) in usbnet_get_link()
996 int usbnet_nway_reset(struct net_device *net) in usbnet_nway_reset()
1007 void usbnet_get_drvinfo (struct net_device *net, struct ethtool_drvinfo *info) in usbnet_get_drvinfo()
1019 u32 usbnet_get_msglevel (struct net_device *net) in usbnet_get_msglevel()
1027 void usbnet_set_msglevel (struct net_device *net, u32 level) in usbnet_set_msglevel()
[all …]
Dpegasus.c442 struct net_device *net; in read_bulk_callback() local
589 struct net_device *net; in write_bulk_callback() local
625 struct net_device *net; in intr_callback() local
678 static void pegasus_tx_timeout(struct net_device *net) in pegasus_tx_timeout()
687 struct net_device *net) in pegasus_start_xmit()
759 static void set_carrier(struct net_device *net) in set_carrier()
810 static int pegasus_open(struct net_device *net) in pegasus_open()
863 static int pegasus_close(struct net_device *net) in pegasus_close()
987 static int pegasus_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in pegasus_ioctl()
1012 static void pegasus_set_multicast(struct net_device *net) in pegasus_set_multicast()
[all …]
Dmcs7830.c332 static int mcs7830_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in mcs7830_ioctl()
359 static void mcs7830_data_set_multicast(struct net_device *net) in mcs7830_data_set_multicast()
422 static void mcs7830_set_multicast(struct net_device *net) in mcs7830_set_multicast()
432 static int mcs7830_get_regs_len(struct net_device *net) in mcs7830_get_regs_len()
445 static void mcs7830_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *drvinfo) in mcs7830_get_drvinfo()
450 static void mcs7830_get_regs(struct net_device *net, struct ethtool_regs *regs, void *data) in mcs7830_get_regs()
486 struct net_device *net = dev->net; in mcs7830_bind() local
Dax88172a.c54 static int ax88172a_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in ax88172a_ioctl()
163 static int ax88172a_get_settings(struct net_device *net, in ax88172a_get_settings()
172 static int ax88172a_set_settings(struct net_device *net, in ax88172a_set_settings()
181 static int ax88172a_nway_reset(struct net_device *net) in ax88172a_nway_reset()
/linux-4.4.14/net/8021q/
Dvlanproc.c126 void vlan_proc_cleanup(struct net *net) in vlan_proc_cleanup()
145 int __net_init vlan_proc_init(struct net *net) in vlan_proc_init()
206 struct net *net = seq_file_net(seq); in vlan_seq_start() local
227 struct net *net = seq_file_net(seq); in vlan_seq_next() local
253 struct net *net = seq_file_net(seq); in vlan_seq_show() local
Dvlanproc.h14 #define vlan_proc_init(net) (0) argument
15 #define vlan_proc_cleanup(net) do {} while (0) argument
/linux-4.4.14/drivers/net/hyperv/
Dnetvsc_drv.c85 static void netvsc_set_multicast_list(struct net_device *net) in netvsc_set_multicast_list()
92 static int netvsc_open(struct net_device *net) in netvsc_open()
119 static int netvsc_close(struct net_device *net) in netvsc_close()
417 static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net) in netvsc_start_xmit()
647 struct net_device *net; in netvsc_linkstatus_callback() local
691 struct net_device *net; in netvsc_recv_callback() local
753 static void netvsc_get_drvinfo(struct net_device *net, in netvsc_get_drvinfo()
760 static void netvsc_get_channels(struct net_device *net, in netvsc_get_channels()
773 static int netvsc_set_channels(struct net_device *net, in netvsc_set_channels()
913 static struct rtnl_link_stats64 *netvsc_get_stats64(struct net_device *net, in netvsc_get_stats64()
[all …]
/linux-4.4.14/net/bridge/netfilter/
Dnf_log_bridge.c19 static void nf_log_bridge_packet(struct net *net, u_int8_t pf, in nf_log_bridge_packet()
51 static int __net_init nf_log_bridge_net_init(struct net *net) in nf_log_bridge_net_init()
57 static void __net_exit nf_log_bridge_net_exit(struct net *net) in nf_log_bridge_net_exit()
Debtable_broute.c66 static int __net_init broute_net_init(struct net *net) in broute_net_init()
72 static void __net_exit broute_net_exit(struct net *net) in broute_net_exit()
Debtables.c353 find_table_lock(struct net *net, const char *name, int *error, in find_table_lock()
590 ebt_cleanup_match(struct ebt_entry_match *m, struct net *net, unsigned int *i) in ebt_cleanup_match()
608 ebt_cleanup_watcher(struct ebt_entry_watcher *w, struct net *net, unsigned int *i) in ebt_cleanup_watcher()
626 ebt_cleanup_entry(struct ebt_entry *e, struct net *net, unsigned int *cnt) in ebt_cleanup_entry()
651 ebt_check_entry(struct ebt_entry *e, struct net *net, in ebt_check_entry()
837 static int translate_table(struct net *net, const char *name, in translate_table()
979 static int do_replace_finish(struct net *net, struct ebt_replace *repl, in do_replace_finish()
1097 static int do_replace(struct net *net, const void __user *user, in do_replace()
1156 ebt_register_table(struct net *net, const struct ebt_table *input_table) in ebt_register_table()
1254 void ebt_unregister_table(struct net *net, struct ebt_table *table) in ebt_unregister_table()
[all …]
/linux-4.4.14/include/net/sctp/
Dsctp.h178 #define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument
179 #define SCTP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->sctp.sctp_statistics, field) argument
180 #define SCTP_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->sctp.sctp_statistics, field) argument
181 #define SCTP_DEC_STATS(net, field) SNMP_DEC_STATS((net)->sctp.sctp_statistics, field) argument
279 static inline void sctp_dbg_objcnt_init(struct net *net) { return; } in sctp_dbg_objcnt_init()
280 static inline void sctp_dbg_objcnt_exit(struct net *net) { return; } in sctp_dbg_objcnt_exit()
292 static inline int sctp_sysctl_net_register(struct net *net) { return 0; } in sctp_sysctl_net_register()
293 static inline void sctp_sysctl_net_unregister(struct net *net) { return; } in sctp_sysctl_net_unregister()
511 static inline int sctp_phashfn(struct net *net, __u16 lport) in sctp_phashfn()
517 static inline int sctp_ep_hashfn(struct net *net, __u16 lport) in sctp_ep_hashfn()
[all …]
/linux-4.4.14/net/l2tp/
Dl2tp_netlink.c65 struct net *net = genl_info_net(info); in l2tp_nl_session_find() local
177 struct net *net = genl_info_net(info); in l2tp_nl_cmd_tunnel_create() local
271 struct net *net = genl_info_net(info); in l2tp_nl_cmd_tunnel_delete() local
299 struct net *net = genl_info_net(info); in l2tp_nl_cmd_tunnel_modify() local
419 struct net *net = genl_info_net(info); in l2tp_nl_cmd_tunnel_get() local
458 struct net *net = sock_net(skb->sk); in l2tp_nl_cmd_tunnel_dump() local
488 struct net *net = genl_info_net(info); in l2tp_nl_cmd_session_create() local
817 struct net *net = sock_net(skb->sk); in l2tp_nl_cmd_session_dump() local
/linux-4.4.14/net/unix/
Dsysctl_net_unix.c29 int __net_init unix_sysctl_register(struct net *net) in unix_sysctl_register()
54 void unix_sysctl_unregister(struct net *net) in unix_sysctl_unregister()
/linux-4.4.14/net/bridge/
Dbr_ioctl.c24 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices()
89 struct net *net = dev_net(br->dev); in add_del_if() local
296 static int old_deviceless(struct net *net, void __user *uarg) in old_deviceless()
350 int br_ioctl_deviceless_stub(struct net *net, unsigned int cmd, void __user *uarg) in br_ioctl_deviceless_stub()
Dbr_mdb.c118 struct net *net = sock_net(skb->sk); in br_mdb_dump() local
213 struct net *net = dev_net(dev); in __br_mdb_notify() local
294 struct net *net = dev_net(dev); in br_rtr_notify() local
345 struct net *net = sock_net(skb->sk); in br_mdb_parse() local
429 static int __br_mdb_add(struct net *net, struct net_bridge *br, in __br_mdb_add()
466 struct net *net = sock_net(skb->sk); in br_mdb_add() local
568 struct net *net = sock_net(skb->sk); in br_mdb_del() local
Dbr_netfilter_hooks.c190 static int br_validate_ipv4(struct net *net, struct sk_buff *skb) in br_validate_ipv4()
256 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish_bridge()
342 static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish()
535 static int br_nf_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_forward_finish()
667 static int br_nf_push_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_push_frag_xmit()
693 br_nf_ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in br_nf_ip_fragment()
694 int (*output)(struct net *, struct sock *, struct sk_buff *)) in br_nf_ip_fragment()
717 static int br_nf_dev_queue_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_dev_queue_xmit()
Dbr_input.c30 br_netif_receive_skb(struct net *net, struct sock *sk, struct sk_buff *skb) in br_netif_receive_skb()
129 int br_handle_frame_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_handle_frame_finish()
217 static int br_handle_local_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_handle_local_finish()
/linux-4.4.14/drivers/net/can/spi/
Dmcp251x.c245 struct net_device *net; member
285 static void mcp251x_clean(struct net_device *net) in mcp251x_clean()
516 struct net_device *net) in mcp251x_hard_start_xmit()
536 static int mcp251x_do_set_mode(struct net_device *net, enum can_mode mode) in mcp251x_do_set_mode()
592 static int mcp251x_do_set_bittiming(struct net_device *net) in mcp251x_do_set_bittiming()
615 static int mcp251x_setup(struct net_device *net, struct mcp251x_priv *priv, in mcp251x_setup()
682 static void mcp251x_open_clean(struct net_device *net) in mcp251x_open_clean()
693 static int mcp251x_stop(struct net_device *net) in mcp251x_stop()
727 static void mcp251x_error_skb(struct net_device *net, int can_id, int data1) in mcp251x_error_skb()
747 struct net_device *net = priv->net; in mcp251x_tx_work_handler() local
[all …]
/linux-4.4.14/net/key/
Daf_key.c95 struct net *net = sock_net(sk); in pfkey_sock_destruct() local
116 struct net *net = sock_net(sk); in pfkey_insert() local
137 static int pfkey_create(struct net *net, struct socket *sock, int protocol, in pfkey_create()
224 struct net *net) in pfkey_broadcast()
613 static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, voi… in pfkey_xfrm_state_lookup()
1029 static struct xfrm_state * pfkey_msg2xfrm_state(struct net *net, in pfkey_msg2xfrm_state()
1270 struct net *net = sock_net(sk); in pfkey_getspi() local
1375 struct net *net = sock_net(sk); in pfkey_acquire() local
1462 struct net *net = sock_net(sk); in pfkey_add() local
1499 struct net *net = sock_net(sk); in pfkey_delete() local
[all …]
/linux-4.4.14/net/rds/
Dtcp.c187 static int rds_tcp_laddr_check(struct net *net, __be32 addr) in rds_tcp_laddr_check()
290 struct net *net = sock_net(sk); in rds_tcp_accept_work() local
296 static __net_init int rds_tcp_init_net(struct net *net) in rds_tcp_init_net()
309 static void __net_exit rds_tcp_exit_net(struct net *net) in rds_tcp_exit_net()
335 static void rds_tcp_kill_sock(struct net *net) in rds_tcp_kill_sock()
/linux-4.4.14/fs/nfs/
Ddns_resolve.h19 static inline int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init()
24 static inline void nfs_dns_resolver_cache_destroy(struct net *net) in nfs_dns_resolver_cache_destroy()
Ddns_resolve.c17 ssize_t nfs_dns_resolve_name(struct net *net, char *name, size_t namelen, in nfs_dns_resolve_name()
332 ssize_t nfs_dns_resolve_name(struct net *net, char *name, in nfs_dns_resolve_name()
372 int nfs_dns_resolver_cache_init(struct net *net) in nfs_dns_resolver_cache_init()
391 void nfs_dns_resolver_cache_destroy(struct net *net) in nfs_dns_resolver_cache_destroy()
399 static int nfs4_dns_net_init(struct net *net) in nfs4_dns_net_init()
404 static void nfs4_dns_net_exit(struct net *net) in nfs4_dns_net_exit()
418 struct net *net = sb->s_fs_info; in rpc_pipefs_event() local
Dcallback.c42 static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) in nfs4_callback_up_net()
235 static void nfs_callback_down_net(u32 minorversion, struct svc_serv *serv, struct net *net) in nfs_callback_down_net()
247 struct net *net, struct rpc_xprt *xprt) in nfs_callback_up_net()
333 struct net *net = xprt->xprt_net; in nfs_callback_up() local
373 void nfs_callback_down(int minorversion, struct net *net) in nfs_callback_down()
/linux-4.4.14/net/sched/
Dcls_api.c123 struct net *net = sock_net(skb->sk); in tc_ctl_tfilter() local
354 static int tcf_fill_node(struct net *net, struct sk_buff *skb, struct tcf_proto *tp, in tcf_fill_node()
388 static int tfilter_notify(struct net *net, struct sk_buff *oskb, in tfilter_notify()
418 struct net *net = sock_net(a->skb->sk); in tcf_node_dump() local
427 struct net *net = sock_net(skb->sk); in tc_dump_tfilter() local
518 int tcf_exts_validate(struct net *net, struct tcf_proto *tp, struct nlattr **tb, in tcf_exts_validate()
/linux-4.4.14/net/netlink/
Dgenetlink.c266 struct net *net; in genl_validate_assign_mc_groups() local
300 struct net *net; in genl_unregister_mc_groups() local
547 struct net *net = sock_net(skb->sk); in genl_family_rcv_msg() local
819 struct net *net = sock_net(skb->sk); in ctrl_dumpfamily() local
994 static int genl_bind(struct net *net, int group) in genl_bind()
1022 static void genl_unbind(struct net *net, int group) in genl_unbind()
1044 static int __net_init genl_pernet_init(struct net *net) in genl_pernet_init()
1065 static void __net_exit genl_pernet_exit(struct net *net) in genl_pernet_exit()
1104 struct net *net, *prev = NULL; in genlmsg_mcast() local
1142 struct net *net = genl_info_net(info); in genl_notify() local
/linux-4.4.14/net/sunrpc/auth_gss/
Dgss_rpc_upcall.c92 static int gssp_rpc_create(struct net *net, struct rpc_clnt **_clnt) in gssp_rpc_create()
142 int set_gssp_clnt(struct net *net) in set_gssp_clnt()
181 static int gssp_call(struct net *net, struct rpc_message *msg) in gssp_call()
249 int gssp_accept_sec_context_upcall(struct net *net, in gssp_accept_sec_context_upcall()
/linux-4.4.14/net/dccp/
Dipv4.c201 struct net *net = sock_net(sk); in dccp_req_err() local
246 struct net *net = dev_net(skb->dev); in dccp_v4_err() local
447 static struct dst_entry* dccp_v4_route_skb(struct net *net, struct sock *sk, in dccp_v4_route_skb()
507 struct net *net = dev_net(skb_dst(rxskb)->dev); in dccp_v4_ctl_send_reset() local
1004 static int __net_init dccp_v4_init_net(struct net *net) in dccp_v4_init_net()
1013 static void __net_exit dccp_v4_exit_net(struct net *net) in dccp_v4_exit_net()
/linux-4.4.14/drivers/vhost/
Dnet.c204 static void vhost_net_tx_packet(struct vhost_net *net) in vhost_net_tx_packet()
213 static void vhost_net_tx_err(struct vhost_net *net) in vhost_net_tx_err()
218 static bool vhost_net_tx_select_zcopy(struct vhost_net *net) in vhost_net_tx_select_zcopy()
238 static void vhost_zerocopy_signal_used(struct vhost_net *net, in vhost_zerocopy_signal_used()
292 static void handle_tx(struct vhost_net *net) in handle_tx()
517 static void handle_rx(struct vhost_net *net) in handle_rx()
647 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_tx_kick() local
656 struct vhost_net *net = container_of(vq->dev, struct vhost_net, dev); in handle_rx_kick() local
663 struct vhost_net *net = container_of(work, struct vhost_net, in handle_tx_net() local
670 struct vhost_net *net = container_of(work, struct vhost_net, in handle_rx_net() local

1234