/Linux-v5.4/include/net/ |
D | net_namespace.h | 54 struct net { struct 58 refcount_t passive; /* To decide when the network argument 61 refcount_t count; /* To decided when the network argument 74 struct list_head list; /* list of network namespaces */ argument 75 struct list_head exit_list; /* To linked to call pernet exit argument 76 * methods on dead net ( argument 88 struct idr netns_ids; argument 93 struct proc_dir_entry *proc_net; argument 94 struct proc_dir_entry *proc_net_stat; argument 100 struct sock *rtnl; /* rtnetlink socket */ argument [all …]
|
/Linux-v5.4/net/tipc/ |
D | bcast.c | 76 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() 85 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() 90 void tipc_bcast_disable_rcast(struct net *net) in tipc_bcast_disable_rcast() 95 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() 106 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() 140 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_inc_bearer_dst_cnt() 150 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id) in tipc_bcast_dec_bearer_dst_cnt() 170 static void tipc_bcbase_xmit(struct net *net, struct sk_buff_head *xmitq) in tipc_bcbase_xmit() 205 static void tipc_bcast_select_xmit_method(struct net *net, int dests, in tipc_bcast_select_xmit_method() 252 static int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts, in tipc_bcast_xmit() [all …]
|
D | bearer.c | 61 static struct tipc_bearer *bearer_get(struct net *net, int bearer_id) in bearer_get() 172 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name) in tipc_bearer_find() 191 int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id) in tipc_bearer_get_name() 207 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_add_dest() 219 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest) in tipc_bearer_remove_dest() 234 static int tipc_enable_bearer(struct net *net, const char *name, in tipc_enable_bearer() 346 static int tipc_reset_bearer(struct net *net, struct tipc_bearer *b) in tipc_reset_bearer() 359 static void bearer_disable(struct net *net, struct tipc_bearer *b) in bearer_disable() 376 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, in tipc_enable_l2_media() 446 int tipc_l2_send_msg(struct net *net, struct sk_buff *skb, in tipc_l2_send_msg() [all …]
|
D | name_distr.c | 68 static struct sk_buff *named_prepare_buf(struct net *net, u32 type, u32 size, in named_prepare_buf() 87 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ) in tipc_named_publish() 114 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ) in tipc_named_withdraw() 143 static void named_distribute(struct net *net, struct sk_buff_head *list, in named_distribute() 188 void tipc_named_node_up(struct net *net, u32 dnode) in tipc_named_node_up() 207 static void tipc_publ_purge(struct net *net, struct publication *publ, u32 addr) in tipc_publ_purge() 233 static void tipc_dist_queue_purge(struct net *net, u32 addr) in tipc_dist_queue_purge() 248 void tipc_publ_notify(struct net *net, struct list_head *nsub_list, u32 addr) in tipc_publ_notify() 264 static bool tipc_update_nametbl(struct net *net, struct distr_item *i, in tipc_update_nametbl() 301 void tipc_named_rcv(struct net *net, struct sk_buff_head *inputq) in tipc_named_rcv() [all …]
|
D | net.c | 109 struct net *net; member 115 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() 130 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() 152 void tipc_sched_net_finalize(struct net *net, u32 addr) in tipc_sched_net_finalize() 164 void tipc_net_stop(struct net *net) in tipc_net_stop() 177 static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) in __tipc_nl_add_net() 215 struct net *net = sock_net(skb->sk); in tipc_nl_net_dump() local 241 struct net *net = sock_net(skb->sk); in __tipc_nl_net_set() local
|
D | addr.h | 46 static inline u32 tipc_own_addr(struct net *net) in tipc_own_addr() 51 static inline u8 *tipc_own_id(struct net *net) in tipc_own_id() 60 static inline char *tipc_own_id_string(struct net *net) in tipc_own_id_string() 75 static inline int tipc_scope2node(struct net *net, int sc) in tipc_scope2node() 80 static inline int in_own_node(struct net *net, u32 addr) in in_own_node()
|
/Linux-v5.4/net/core/ |
D | net_namespace.c | 84 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() 121 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() 148 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() 158 struct net *net; in ops_pre_exit_list() local 169 struct net *net; in ops_exit_list() local 181 struct net *net; in ops_free_list() local 189 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid() 207 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr() 218 static int __peernet2id_alloc(struct net *net, struct net *peer, bool *alloc) in __peernet2id_alloc() 241 static int __peernet2id(struct net *net, struct net *peer) in __peernet2id() [all …]
|
D | fib_notifier.c | 19 int call_fib_notifier(struct notifier_block *nb, struct net *net, in call_fib_notifier() 31 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers() 47 struct net *net; in fib_seq_sum() local 68 static int fib_net_dump(struct net *net, struct notifier_block *nb) in fib_net_dump() 109 struct net *net; in register_fib_notifier() local 138 struct net *net) in __fib_notifier_ops_register() 151 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() 179 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() 187 static void __net_exit fib_notifier_net_exit(struct net *net) in fib_notifier_net_exit()
|
/Linux-v5.4/net/ipv4/ |
D | fib_frontend.c | 51 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init() 74 static bool fib4_has_custom_rules(struct net *net) in fib4_has_custom_rules() 80 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() 116 struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() 135 static bool fib4_has_custom_rules(struct net *net) in fib4_has_custom_rules() 141 static void fib_replace_table(struct net *net, struct fib_table *old, in fib_replace_table() 161 int fib_unmerge(struct net *net) in fib_unmerge() 193 void fib_flush(struct net *net) in fib_flush() 215 static inline unsigned int __inet_dev_addr_type(struct net *net, in __inet_dev_addr_type() 246 unsigned int inet_addr_type_table(struct net *net, __be32 addr, u32 tb_id) in inet_addr_type_table() [all …]
|
D | ipmr.c | 112 #define ipmr_for_each_table(mrt, net) \ argument 115 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter() 132 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table() 143 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup() 236 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init() 268 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit() 281 static int ipmr_rules_dump(struct net *net, struct notifier_block *nb) in ipmr_rules_dump() 286 static unsigned int ipmr_rules_seq_read(struct net *net) in ipmr_rules_seq_read() 297 #define ipmr_for_each_table(mrt, net) \ argument 300 static struct mr_table *ipmr_mr_table_iter(struct net *net, in ipmr_mr_table_iter() [all …]
|
D | fib_notifier.c | 12 int call_fib4_notifier(struct notifier_block *nb, struct net *net, in call_fib4_notifier() 20 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, in call_fib4_notifiers() 30 static unsigned int fib4_seq_read(struct net *net) in fib4_seq_read() 37 static int fib4_dump(struct net *net, struct notifier_block *nb) in fib4_dump() 57 int __net_init fib4_notifier_init(struct net *net) in fib4_notifier_init() 71 void __net_exit fib4_notifier_exit(struct net *net) in fib4_notifier_exit()
|
D | ip_input.c | 154 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() 226 static int ip_local_deliver_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_local_deliver_finish() 245 struct net *net = dev_net(skb->dev); in ip_local_deliver() local 307 static int ip_rcv_finish_core(struct net *net, struct sock *sk, in ip_rcv_finish_core() 399 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish() 420 static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net) in ip_rcv_core() 517 struct net *net = dev_net(dev); in ip_rcv() local 538 static void ip_list_rcv_finish(struct net *net, struct sock *sk, in ip_list_rcv_finish() 576 struct net *net) in ip_sublist_rcv() [all …]
|
/Linux-v5.4/net/ipv6/ |
D | ip6_fib.c | 42 struct net *net; member 73 #define FOR_WALKERS(net, w) \ argument 76 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() 83 static void fib6_walker_unlink(struct net *net, struct fib6_walker *w) in fib6_walker_unlink() 90 static int fib6_new_sernum(struct net *net) in fib6_new_sernum() 106 void fib6_update_sernum(struct net *net, struct fib6_info *f6i) in fib6_update_sernum() 181 static struct fib6_node *node_alloc(struct net *net) in node_alloc() 192 static void node_free_immediate(struct net *net, struct fib6_node *fn) in node_free_immediate() 205 static void node_free(struct net *net, struct fib6_node *fn) in node_free() 217 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table() [all …]
|
D | ip6mr.c | 99 #define ip6mr_for_each_table(mrt, net) \ argument 102 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter() 119 static struct mr_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table() 130 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup() 223 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init() 255 static void __net_exit ip6mr_rules_exit(struct net *net) in ip6mr_rules_exit() 268 static int ip6mr_rules_dump(struct net *net, struct notifier_block *nb) in ip6mr_rules_dump() 273 static unsigned int ip6mr_rules_seq_read(struct net *net) in ip6mr_rules_seq_read() 285 #define ip6mr_for_each_table(mrt, net) \ argument 288 static struct mr_table *ip6mr_mr_table_iter(struct net *net, in ip6mr_mr_table_iter() [all …]
|
D | fib6_notifier.c | 10 int call_fib6_notifier(struct notifier_block *nb, struct net *net, in call_fib6_notifier() 18 int call_fib6_notifiers(struct net *net, enum fib_event_type event_type, in call_fib6_notifiers() 25 static unsigned int fib6_seq_read(struct net *net) in fib6_seq_read() 30 static int fib6_dump(struct net *net, struct notifier_block *nb) in fib6_dump() 48 int __net_init fib6_notifier_init(struct net *net) in fib6_notifier_init() 60 void __net_exit fib6_notifier_exit(struct net *net) in fib6_notifier_exit()
|
D | reassembly.c | 82 fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif) in fq_find() 108 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue() local 251 struct net *net = fq->q.fqdir->net; in ip6_frag_reasm() local 324 struct net *net = dev_net(skb_dst(skb)->dev); in ipv6_frag_rcv() local 430 static int __net_init ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() 462 static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() 486 static int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() 491 static void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() 505 static int __net_init ipv6_frags_init_net(struct net *net) in ipv6_frags_init_net() 523 static void __net_exit ipv6_frags_pre_exit_net(struct net *net) in ipv6_frags_pre_exit_net() [all …]
|
/Linux-v5.4/net/sctp/ |
D | sm_statefuns.c | 208 enum sctp_disposition sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C() 293 enum sctp_disposition sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init() 492 enum sctp_disposition sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack() 611 static bool sctp_auth_chunk_verify(struct net *net, struct sctp_chunk *chunk, in sctp_auth_chunk_verify() 674 enum sctp_disposition sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce() 888 enum sctp_disposition sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca() 1005 enum sctp_disposition sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3() 1053 enum sctp_disposition sctp_sf_send_reconf(struct net *net, in sctp_sf_send_reconf() 1105 enum sctp_disposition sctp_sf_beat_8_3(struct net *net, in sctp_sf_beat_8_3() 1179 enum sctp_disposition sctp_sf_backbeat_8_3(struct net *net, in sctp_sf_backbeat_8_3() [all …]
|
/Linux-v5.4/fs/afs/ |
D | cell.c | 24 static void afs_dec_cells_outstanding(struct afs_net *net) in afs_dec_cells_outstanding() 34 static void afs_set_cell_timer(struct afs_net *net, time64_t delay) in afs_set_cell_timer() 47 struct afs_cell *afs_lookup_cell_rcu(struct afs_net *net, in afs_lookup_cell_rcu() 122 static struct afs_cell *afs_alloc_cell(struct afs_net *net, in afs_alloc_cell() 215 struct afs_cell *afs_lookup_cell(struct afs_net *net, in afs_lookup_cell() 322 int afs_cell_init(struct afs_net *net, const char *rootcell) in afs_cell_init() 485 static void afs_queue_cell_manager(struct afs_net *net) in afs_queue_cell_manager() 501 struct afs_net *net = container_of(timer, struct afs_net, cells_timer); in afs_cells_timer() local 520 void afs_put_cell(struct afs_net *net, struct afs_cell *cell) in afs_put_cell() 572 static int afs_activate_cell(struct afs_net *net, struct afs_cell *cell) in afs_activate_cell() [all …]
|
D | server.c | 18 static void afs_inc_servers_outstanding(struct afs_net *net) in afs_inc_servers_outstanding() 23 static void afs_dec_servers_outstanding(struct afs_net *net) in afs_dec_servers_outstanding() 32 struct afs_server *afs_find_server(struct afs_net *net, in afs_find_server() 102 struct afs_server *afs_find_server_by_uuid(struct afs_net *net, const uuid_t *uuid) in afs_find_server_by_uuid() 148 static struct afs_server *afs_install_server(struct afs_net *net, in afs_install_server() 210 static struct afs_server *afs_alloc_server(struct afs_net *net, in afs_alloc_server() 308 static void afs_set_server_timer(struct afs_net *net, time64_t delay) in afs_set_server_timer() 323 struct afs_net *net = container_of(timer, struct afs_net, fs_timer); in afs_servers_timer() local 345 void afs_put_server(struct afs_net *net, struct afs_server *server, in afs_put_server() 378 static void afs_destroy_server(struct afs_net *net, struct afs_server *server) in afs_destroy_server() [all …]
|
/Linux-v5.4/net/netfilter/ |
D | nf_synproxy_core.c | 307 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init() 315 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit() 320 static int __net_init synproxy_proc_init(struct net *net) in synproxy_proc_init() 325 static void __net_exit synproxy_proc_exit(struct net *net) in synproxy_proc_exit() 331 static int __net_init synproxy_net_init(struct net *net) in synproxy_net_init() 368 static void __net_exit synproxy_net_exit(struct net *net) in synproxy_net_exit() 414 synproxy_build_ip(struct net *net, struct sk_buff *skb, __be32 saddr, in synproxy_build_ip() 436 synproxy_send_tcp(struct net *net, in synproxy_send_tcp() 465 synproxy_send_client_synack(struct net *net, in synproxy_send_client_synack() 508 synproxy_send_server_syn(struct net *net, in synproxy_send_server_syn() [all …]
|
D | nf_log.c | 45 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() 128 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() 144 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf() 215 void nf_log_packet(struct net *net, in nf_log_packet() 244 void nf_log_trace(struct net *net, in nf_log_trace() 328 struct net *net = seq_file_net(seq); in seq_start() local 340 struct net *net = seq_file_net(s); in seq_next() local 360 struct net *net = seq_file_net(s); in seq_show() local 423 struct net *net = table->extra2; in nf_log_proc_dostring() local [all …]
|
/Linux-v5.4/fs/nfs_common/ |
D | grace.c | 29 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() 86 bool locks_in_grace(struct net *net) in locks_in_grace() 92 bool opens_in_grace(struct net *net) in opens_in_grace() 99 grace_init_net(struct net *net) in grace_init_net() 108 grace_exit_net(struct net *net) in grace_exit_net()
|
/Linux-v5.4/include/net/netfilter/ |
D | nf_conntrack_l4proto.h | 171 void nf_l4proto_log_invalid(const struct sk_buff *skb, struct net *net, in nf_l4proto_log_invalid() 180 static inline struct nf_generic_net *nf_generic_pernet(struct net *net) in nf_generic_pernet() 185 static inline struct nf_tcp_net *nf_tcp_pernet(struct net *net) in nf_tcp_pernet() 190 static inline struct nf_udp_net *nf_udp_pernet(struct net *net) in nf_udp_pernet() 195 static inline struct nf_icmp_net *nf_icmp_pernet(struct net *net) in nf_icmp_pernet() 200 static inline struct nf_icmp_net *nf_icmpv6_pernet(struct net *net) in nf_icmpv6_pernet() 207 static inline struct nf_dccp_net *nf_dccp_pernet(struct net *net) in nf_dccp_pernet() 214 static inline struct nf_sctp_net *nf_sctp_pernet(struct net *net) in nf_sctp_pernet() 221 static inline struct nf_gre_net *nf_gre_pernet(struct net *net) in nf_gre_pernet()
|
/Linux-v5.4/drivers/rapidio/ |
D | rio-scan.c | 56 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() 524 static int rio_enum_peer(struct rio_net *net, struct rio_mport *port, in rio_enum_peer() 728 rio_disc_peer(struct rio_net *net, struct rio_mport *port, u16 destid, in rio_disc_peer() 810 static void rio_scan_release_net(struct rio_net *net) in rio_scan_release_net() [all …]
|
/Linux-v5.4/net/bridge/ |
D | br_netfilter_hooks.c | 85 static inline bool is_vlan_ip(const struct sk_buff *skb, const struct net *net) in is_vlan_ip() 93 const struct net *net) in is_vlan_ipv6() 101 static inline bool is_vlan_arp(const struct sk_buff *skb, const struct net *net) in is_vlan_arp() 114 static inline bool is_pppoe_ip(const struct sk_buff *skb, const struct net *net) in is_pppoe_ip() 123 const struct net *net) in is_pppoe_ipv6() 196 static int br_validate_ipv4(struct net *net, struct sk_buff *skb) in br_validate_ipv4() 266 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish_bridge() 352 static int br_nf_pre_routing_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in br_nf_pre_routing_finish() 429 const struct net *net) in brnf_get_logical_dev() 446 struct net_device *setup_pre_routing(struct sk_buff *skb, const struct net *net) in setup_pre_routing() [all …]
|