Home
last modified time | relevance | path

Searched defs:net (Results 1 – 25 of 889) sorted by relevance

12345678910>>...36

/linux/include/net/
H A Dnet_namespace.h61 struct net { struct
65 refcount_t passive; /* To decide when the network argument
76 struct list_head list; /* list of network namespaces */ argument
77 struct list_head exit_list; /* To linked to call pernet exit argument
78 * methods on dead net ( argument
94 struct idr netns_ids; argument
99 * refcounted against netns argument
102 struct proc_dir_entry *proc_net; argument
103 struct proc_dir_entry *proc_net_stat; argument
109 struct sock *rtnl; /* rtnetlink socket */ argument
[all …]
/linux/include/linux/
H A Drtnetlink.h14 static inline int rtnetlink_maybe_send(struct sk_buff *skb, struct net *net, in rtnetlink_maybe_send()
111 #define ASSERT_RTNL_NET(net) \ argument
118 #define rcu_dereference_rtnl_net(net, p) \ argument
120 #define rtnl_net_dereference(net, p) \ argument
122 #define rcu_replace_pointer_rtnl_net(net, rp, p) \ argument
125 static inline void __rtnl_net_lock(struct net *net) {} in __rtnl_net_lock()
126 static inline void __rtnl_net_unlock(struct net *net) {} in __rtnl_net_unlock()
128 static inline void rtnl_net_lock(struct net *net) in rtnl_net_lock()
133 static inline void rtnl_net_unlock(struct net *net) in rtnl_net_unlock()
138 static inline int rtnl_net_trylock(struct net *net) in rtnl_net_trylock()
[all …]
/linux/net/core/
H A Dnet_namespace.c83 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic()
120 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init()
157 struct net *net; in ops_pre_exit_list() local
171 struct net *net; in ops_exit_rtnl_list() local
196 struct net *net; in ops_exit_list() local
211 struct net *net; in ops_free_list() local
270 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid()
288 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr()
296 static int __peernet2id(const struct net *net, struct net *peer) in __peernet2id()
314 int peernet2id_alloc(struct net *net, struct net *peer, gfp_t gfp) in peernet2id_alloc()
[all …]
H A Dfib_notifier.c29 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers()
40 static unsigned int fib_seq_sum(struct net *net) in fib_seq_sum()
58 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump()
81 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent()
97 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier()
119 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier()
128 struct net *net) in __fib_notifier_ops_register()
141 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register()
169 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init()
178 static void __net_exit fib_notifier_net_exit(struct net *net) in fib_notifier_net_exit()
/linux/net/tipc/
H A Dbcast.c77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base()
86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu()
91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast()
96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold()
107 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary()
147 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_inc_bearer_dst_cnt()
157 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_dec_bearer_dst_cnt()
177 static void tipc_bcbase_xmit(struct net *net, struct sk_buff_head *xmitq) in tipc_bcbase_xmit()
212 static void tipc_bcast_select_xmit_method(struct net *net, int dests, in tipc_bcast_select_xmit_method()
259 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_bcast_xmit()
[all …]
H A Dbearer.c62 static struct tipc_bearer *bearer_get(struct net *net, int bearer_id) in bearer_get()
181 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name) in tipc_bearer_find()
200 int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id) in tipc_bearer_get_name()
216 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_add_dest()
227 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_remove_dest()
247 static int tipc_enable_bearer(struct net *net, const char *name, in tipc_enable_bearer()
381 static int tipc_reset_bearer(struct net *net, struct tipc_bearer *b) in tipc_reset_bearer()
407 static void bearer_disable(struct net *net, struct tipc_bearer *b) in bearer_disable()
424 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, in tipc_enable_l2_media()
496 int tipc_l2_send_msg(struct net *net, struct sk_buff *skb, in tipc_l2_send_msg()
[all …]
/linux/net/sctp/
H A Dsm_statefuns.c233 enum sctp_disposition sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C()
318 enum sctp_disposition sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init()
518 enum sctp_disposition sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack()
637 static bool sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk, in sctp_auth_chunk_verify()
700 enum sctp_disposition sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce()
922 enum sctp_disposition sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca()
1041 enum sctp_disposition sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3()
1089 enum sctp_disposition sctp_sf_send_reconf(struct net *net, in sctp_sf_send_reconf()
1118 enum sctp_disposition sctp_sf_send_probe(struct net *net, in sctp_sf_send_probe()
1166 enum sctp_disposition sctp_sf_beat_8_3(struct net *net, in sctp_sf_beat_8_3()
[all …]
/linux/net/ipv4/
H A 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()
113 struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
133 static void fib_replace_table(struct net *net, struct fib_table *old, in fib_replace_table()
153 int fib_unmerge(struct net *net) in fib_unmerge()
185 void fib_flush(struct net *net) in fib_flush()
207 static inline unsigned int __inet_dev_addr_type(struct net *net, in __inet_dev_addr_type()
238 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table()
244 unsigned int inet_addr_type(struct net *net, __be32 addr) in inet_addr_type()
250 unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, in inet_dev_addr_type()
[all …]
H A Dipmr.c119 #define ipmr_for_each_table(mrt, net) \ argument
124 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter()
141 static struct mr_table *__ipmr_get_table(struct net *net, u32 id) in __ipmr_get_table()
152 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table()
162 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup()
250 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init()
284 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit()
296 static int ipmr_rules_dump(struct net *net, struct notifier_block *nb, in ipmr_rules_dump()
302 static unsigned int ipmr_rules_seq_read(const struct net *net) in ipmr_rules_seq_read()
313 #define ipmr_for_each_table(mrt, net) \ argument
[all …]
H A Dip_input.c154 struct net *net = dev_net(dev); in ip_call_ra_chain() local
187 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) in ip_protocol_deliver_rcu()
227 static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_deliver_finish()
253 struct net *net = dev_net(skb->dev); in ip_local_deliver() local
322 static int ip_rcv_finish_core(struct net *net, in ip_rcv_finish_core()
439 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish()
460 static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net) in ip_rcv_core()
567 struct net *net = dev_net(dev); in ip_rcv() local
588 static struct sk_buff *ip_extract_route_hint(const struct net *net, in ip_extract_route_hint()
602 static void ip_list_rcv_finish(struct net *net, struct list_head *head) in ip_list_rcv_finish()
[all …]
/linux/net/ipv6/
H A Dip6mr.c106 #define ip6mr_for_each_table(mrt, net) \ argument
111 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter()
128 static struct mr_table *__ip6mr_get_table(struct net *net, u32 id) in __ip6mr_get_table()
139 static struct mr_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table()
149 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup()
237 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init()
271 static void __net_exit ip6mr_rules_exit(struct net *net) in ip6mr_rules_exit()
283 static int ip6mr_rules_dump(struct net *net, struct notifier_block *nb, in ip6mr_rules_dump()
289 static unsigned int ip6mr_rules_seq_read(const struct net *net) in ip6mr_rules_seq_read()
301 #define ip6mr_for_each_table(mrt, net) \ argument
[all …]
H A Dip6_fib.c44 struct net *net; member
75 #define FOR_WALKERS(net, w) \ argument
78 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link()
85 static void fib6_walker_unlink(struct net *net, struct fib6_walker *w) in fib6_walker_unlink()
92 static int fib6_new_sernum(struct net *net) in fib6_new_sernum()
107 void fib6_update_sernum(struct net *net, struct fib6_info *f6i) in fib6_update_sernum()
184 static struct fib6_node *node_alloc(struct net *net) in node_alloc()
195 static void node_free_immediate(struct net *net, struct fib6_node *fn) in node_free_immediate()
201 static void node_free(struct net *net, struct fib6_node *fn) in node_free()
213 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table()
[all …]
H A Dreassembly.c85 fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif) in fq_find()
107 static int ip6_frag_queue(struct net *net, in ip6_frag_queue()
261 struct net *net = fq->q.fqdir->net; in ip6_frag_reasm() local
328 struct net *net = skb_dst_dev_net(skb); in ipv6_frag_rcv() local
454 static int __net_init ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register()
487 static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister()
511 static int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register()
516 static void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister()
530 static int __net_init ipv6_frags_init_net(struct net *net) in ipv6_frags_init_net()
548 static void __net_exit ipv6_frags_pre_exit_net(struct net *net) in ipv6_frags_pre_exit_net()
[all …]
/linux/kernel/bpf/
H A Dnet_namespace.c20 struct net *net; member
55 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach()
65 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index()
79 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count()
89 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array()
107 struct net *net; in bpf_netns_link_release() local
171 struct net *net; in bpf_netns_link_update_prog() local
209 struct net *net; in bpf_netns_link_fill_info() local
247 struct net *net, in __netns_bpf_prog_query()
274 struct net *net; in netns_bpf_prog_query() local
[all …]
/linux/net/netfilter/
H A Dnf_synproxy_core.c306 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init()
314 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit()
319 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init()
324 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit()
330 static int __net_init synproxy_net_init(struct net *net) in synproxy_net_init()
366 static void __net_exit synproxy_net_exit(struct net *net) in synproxy_net_exit()
396 synproxy_build_ip(struct net *net, struct sk_buff *skb, __be32 saddr, in synproxy_build_ip()
418 synproxy_send_tcp(struct net *net, in synproxy_send_tcp()
447 synproxy_send_client_synack(struct net *net, in synproxy_send_client_synack()
490 synproxy_send_server_syn(struct net *net, in synproxy_send_server_syn()
[all …]
H A Dnf_log.c45 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set()
63 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset()
154 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf()
170 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf()
237 void nf_log_packet(struct net *net, in nf_log_packet()
266 void nf_log_trace(struct net *net, in nf_log_trace()
350 struct net *net = seq_file_net(seq); in seq_start() local
362 struct net *net = seq_file_net(s); in seq_next() local
382 struct net *net = seq_file_net(s); in seq_show() local
444 struct net *net = table->extra2; in nf_log_proc_dostring() local
[all …]
H A Dnf_conntrack_standalone.c102 static struct nf_conntrack_tuple_hash *ct_get_next(const struct net *net, in ct_get_next()
153 struct net *net = seq_file_net(seq); in ct_seq_start() local
174 struct net *net = seq_file_net(s); in ct_seq_next() local
309 struct net *net = seq_file_net(s); in ct_seq_show() local
404 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local
422 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local
441 struct net *net = seq_file_net(seq); in ct_cpu_seq_show() local
483 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
511 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
517 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
[all …]
/linux/drivers/rapidio/
H A Drio-scan.c56 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc()
82 static int rio_destid_reserve(struct rio_net *net, u16 destid) in rio_destid_reserve()
101 static void rio_destid_free(struct rio_net *net, u16 destid) in rio_destid_free()
115 static u16 rio_destid_first(struct rio_net *net) in rio_destid_first()
135 static u16 rio_destid_next(struct rio_net *net, u16 from) in rio_destid_next()
191 static int rio_clear_locks(struct rio_net *net) in rio_clear_locks()
322 static struct rio_dev *rio_setup_device(struct rio_net *net, in rio_setup_device()
526 static int rio_enum_peer(struct rio_net *net, struct rio_mport *port, in rio_enum_peer()
730 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid, in rio_disc_peer()
812 static void rio_scan_release_net(struct rio_net *net) in rio_scan_release_net()
[all …]
/linux/net/mctp/
H A Droute.c43 static struct mctp_sock *mctp_lookup_bind_details(struct net *net, in mctp_lookup_bind_details()
81 static struct mctp_sock *mctp_lookup_bind(struct net *net, struct sk_buff *skb) in mctp_lookup_bind()
163 static bool mctp_key_match(struct mctp_sk_key *key, unsigned int net, in mctp_key_match()
184 static struct mctp_sk_key *mctp_lookup_key(struct net *net, struct sk_buff *skb, in mctp_lookup_key()
224 unsigned int net, in mctp_key_alloc()
267 struct net *net = sock_net(&msk->sk); in mctp_key_add() local
312 static void __mctp_key_done_in(struct mctp_sk_key *key, struct net *net, in __mctp_key_done_in()
434 struct net *net = dev_net(skb->dev); in mctp_dst_input() local
688 unsigned int mctp_default_net(struct net *net) in mctp_default_net()
693 int mctp_default_net_set(struct net *net, unsigned int index) in mctp_default_net_set()
[all …]
/linux/fs/nfsd/
H A Dnfssvc.c207 bool nfsd_net_try_get(struct net *net) __must_hold(rcu) in nfsd_net_try_get()
214 void nfsd_net_put(struct net *net) __must_hold(rcu) in nfsd_net_put()
240 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads()
252 static int nfsd_init_socks(struct net *net, const struct cred *cred) in nfsd_init_socks()
369 static int nfsd_startup_net(struct net *net, const struct cred *cred) in nfsd_startup_net()
423 static void nfsd_shutdown_net(struct net *net) in nfsd_shutdown_net()
455 struct net *net = dev_net(dev); in nfsd_inetaddr_event() local
485 struct net *net = dev_net(dev); in nfsd_inet6addr_event() local
519 void nfsd_destroy_serv(struct net *net) in nfsd_destroy_serv()
588 void nfsd_shutdown_threads(struct net *net) in nfsd_shutdown_threads()
[all …]
/linux/net/smc/
H A Dsmc_pnet.c101 static int smc_pnet_remove_by_pnetid(struct net *net, char *pnet_name) in smc_pnet_remove_by_pnetid()
189 struct net *net = dev_net(ndev); in smc_pnet_add_by_ndev() local
221 struct net *net = dev_net(ndev); in smc_pnet_remove_by_ndev() local
348 static int smc_pnet_add_eth(struct smc_pnettable *pnettable, struct net *net, in smc_pnet_add_eth()
477 static int smc_pnet_enter(struct net *net, struct nlattr *tb[]) in smc_pnet_enter()
562 struct net *net = genl_info_net(info); in smc_pnet_add() local
569 struct net *net = genl_info_net(info); in smc_pnet_del() local
601 static int _smc_pnet_dump(struct net *net, struct sk_buff *skb, u32 portid, in _smc_pnet_dump()
635 struct net *net = sock_net(skb->sk); in smc_pnet_dump() local
648 struct net *net = genl_info_net(info); in smc_pnet_get() local
[all …]
/linux/fs/lockd/
H A Dsvc.c87 static unsigned long get_lockd_grace_period(struct net *net) in get_lockd_grace_period()
111 static void set_grace_period(struct net *net) in set_grace_period()
128 struct net *net = &init_net; in lockd() local
159 struct net *net, const int family, in create_lockd_listener()
173 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family()
198 static int make_socks(struct svc_serv *serv, struct net *net, in make_socks()
223 static int lockd_up_net(struct svc_serv *serv, struct net *net, in lockd_up_net()
248 static void lockd_down_net(struct svc_serv *serv, struct net *net) in lockd_down_net()
380 int lockd_up(struct net *net, const struct cred *cred) in lockd_up()
406 lockd_down(struct net *net) in lockd_down()
[all …]
/linux/net/bridge/
H A Dbr_netfilter_hooks.c91 static inline bool is_vlan_ip(const struct sk_buff *skb, const struct net *net) in is_vlan_ip()
99 const struct net *net) in is_vlan_ipv6()
107 static inline bool is_vlan_arp(const struct sk_buff *skb, const struct net *net) in is_vlan_arp()
120 static inline bool is_pppoe_ip(const struct sk_buff *skb, const struct net *net) in is_pppoe_ip()
129 const struct net *net) in is_pppoe_ipv6()
205 static int br_validate_ipv4(struct net *net, struct sk_buff *skb) in br_validate_ipv4()
275 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish_bridge()
371 static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish()
432 const struct net *net) in brnf_get_logical_dev()
449 struct net_device *setup_pre_routing(struct sk_buff *skb, const struct net *net) in setup_pre_routing()
[all …]
/linux/fs/nfs_common/
H A Dgrace.c30 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace()
64 __state_in_grace(struct net *net, bool open) in __state_in_grace()
91 bool locks_in_grace(struct net *net) in locks_in_grace()
97 bool opens_in_grace(struct net *net) in opens_in_grace()
104 grace_init_net(struct net *net) in grace_init_net()
113 grace_exit_net(struct net *net) in grace_exit_net()
/linux/net/mptcp/
H A Dctrl.c45 static struct mptcp_pernet *mptcp_get_pernet(const struct net *net) in mptcp_get_pernet()
50 int mptcp_is_enabled(const struct net *net) in mptcp_is_enabled()
55 unsigned int mptcp_get_add_addr_timeout(const struct net *net) in mptcp_get_add_addr_timeout()
60 int mptcp_is_checksum_enabled(const struct net *net) in mptcp_is_checksum_enabled()
65 int mptcp_allow_join_id0(const struct net *net) in mptcp_allow_join_id0()
70 unsigned int mptcp_stale_loss_cnt(const struct net *net) in mptcp_stale_loss_cnt()
82 int mptcp_get_pm_type(const struct net *net) in mptcp_get_pm_type()
87 const char *mptcp_get_path_manager(const struct net *net) in mptcp_get_path_manager()
92 const char *mptcp_get_scheduler(const struct net *net) in mptcp_get_scheduler()
367 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table()
[all …]

12345678910>>...36