Home
last modified time | relevance | path

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

12345678910>>...30

/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/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 …]
H A Dnet.c111 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init()
126 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize()
151 void tipc_net_stop(struct net *net) in tipc_net_stop()
164 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net()
202 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local
228 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local
291 static int __tipc_nl_addr_legacy_get(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_addr_legacy_get()
325 struct net *net = sock_net(skb->sk); in tipc_nl_net_addr_legacy_get() local
/linux/net/core/
H A Dnet_namespace.c82 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic()
119 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init()
156 struct net *net; in ops_pre_exit_list() local
170 struct net *net; in ops_exit_rtnl_list() local
195 struct net *net; in ops_exit_list() local
210 struct net *net; in ops_free_list() local
269 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid()
287 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr()
295 static int __peernet2id(const struct net *net, struct net *peer) in __peernet2id()
313 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/sctp/
H A Dsm_statefuns.c232 enum sctp_disposition sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C()
317 enum sctp_disposition sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init()
517 enum sctp_disposition sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack()
636 static bool sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk, in sctp_auth_chunk_verify()
699 enum sctp_disposition sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce()
920 enum sctp_disposition sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca()
1039 enum sctp_disposition sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3()
1087 enum sctp_disposition sctp_sf_send_reconf(struct net *net, in sctp_sf_send_reconf()
1116 enum sctp_disposition sctp_sf_send_probe(struct net *net, in sctp_sf_send_probe()
1164 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.c52 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init()
76 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table()
112 struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
132 static void fib_replace_table(struct net *net, struct fib_table *old, in fib_replace_table()
152 int fib_unmerge(struct net *net) in fib_unmerge()
184 void fib_flush(struct net *net) in fib_flush()
206 static inline unsigned int __inet_dev_addr_type(struct net *net, in __inet_dev_addr_type()
237 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table()
243 unsigned int inet_addr_type(struct net *net, __be32 addr) in inet_addr_type()
249 unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, in inet_dev_addr_type()
[all …]
H A Dipmr.c118 #define ipmr_for_each_table(mrt, net) \ argument
123 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter()
140 static struct mr_table *__ipmr_get_table(struct net *net, u32 id) in __ipmr_get_table()
151 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table()
161 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup()
249 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init()
283 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit()
295 static int ipmr_rules_dump(struct net *net, struct notifier_block *nb, in ipmr_rules_dump()
301 static unsigned int ipmr_rules_seq_read(const struct net *net) in ipmr_rules_seq_read()
312 #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
323 static int ip_rcv_finish_core(struct net *net, in ip_rcv_finish_core()
440 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish()
461 static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net) in ip_rcv_core()
568 struct net *net = dev_net(dev); in ip_rcv() local
589 static struct sk_buff *ip_extract_route_hint(const struct net *net, in ip_extract_route_hint()
599 static void ip_list_rcv_finish(struct net *net, struct list_head *head) in ip_list_rcv_finish()
[all …]
H A Dip_fragment.c87 struct net *net = q->fqdir->net; in ip4_frag_init() local
129 struct net *net; in ip_expire() local
197 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find()
269 struct net *net = qp->q.fqdir->net; in ip_frag_queue() local
408 struct net *net = qp->q.fqdir->net; in ip_frag_reasm() local
477 int ip_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_defrag()
508 struct sk_buff *ip_check_defrag(struct net *net, struct sk_buff *skb, u32 user) in ip_check_defrag()
593 static int __net_init ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register()
627 static void __net_exit ip4_frags_ns_ctl_unregister(struct net *net) in ip4_frags_ns_ctl_unregister()
641 static int ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register()
[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 Dip6_input.c48 static void ip6_rcv_finish_core(struct net *net, struct sock *sk, in ip6_rcv_finish_core()
69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish()
99 static struct sk_buff *ip6_extract_route_hint(const struct net *net, in ip6_extract_route_hint()
109 static void ip6_list_rcv_finish(struct net *net, struct sock *sk, in ip6_list_rcv_finish()
149 struct net *net) in ip6_rcv_core()
306 struct net *net = dev_net(skb->dev); in ipv6_rcv() local
317 struct net *net) in ip6_sublist_rcv()
335 struct net *net = dev_net(dev); in ipv6_list_rcv() local
363 void ip6_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int nexthdr, in ip6_protocol_deliver_rcu()
479 static int ip6_input_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_input_finish()
H A Daddrconf_core.c132 static struct dst_entry *eafnosupport_ipv6_dst_lookup_flow(struct net *net, in eafnosupport_ipv6_dst_lookup_flow()
145 static struct fib6_table *eafnosupport_fib6_get_table(struct net *net, u32 id) in eafnosupport_fib6_get_table()
151 eafnosupport_fib6_table_lookup(struct net *net, struct fib6_table *table, in eafnosupport_fib6_table_lookup()
159 eafnosupport_fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, in eafnosupport_fib6_lookup()
166 eafnosupport_fib6_select_path(const struct net *net, struct fib6_result *res, in eafnosupport_fib6_select_path()
180 static int eafnosupport_fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, in eafnosupport_fib6_nh_init()
188 static int eafnosupport_ip6_del_rt(struct net *net, struct fib6_info *rt, in eafnosupport_ip6_del_rt()
194 static int eafnosupport_ipv6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, in eafnosupport_ipv6_fragment()
195 int (*output)(struct net *, struct sock *, struct sk_buff *)) in eafnosupport_ipv6_fragment()
201 static struct net_device *eafnosupport_ipv6_dev_find(struct net *net, const struct in6_addr *addr, in eafnosupport_ipv6_dev_find()
/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_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
401 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local
419 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local
438 struct net *net = seq_file_net(seq); in ct_cpu_seq_show() local
480 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
508 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
514 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
[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 …]
/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()
427 struct net *net = dev_net(skb->dev); in mctp_dst_input() local
685 unsigned int mctp_default_net(struct net *net) in mctp_default_net()
690 int mctp_default_net_set(struct net *net, unsigned int index) in mctp_default_net_set()
[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
345 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/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/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/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>>...30