/linux/include/net/ |
A D | net_namespace.h | 56 struct net { struct 75 * methods on dead net ( argument 87 struct idr netns_ids; argument 92 struct proc_dir_entry *proc_net; argument 99 struct sock *rtnl; /* rtnetlink socket */ argument 106 struct raw_notifier_head netdev_chain; argument 113 struct net_device *loopback_dev; /* The loopback */ argument 118 struct netns_core core; argument 145 struct net_generic __rcu *gen; argument 184 extern struct net init_net; argument [all …]
|
A D | l3mdev.h | 76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() 121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() 143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() 232 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() 238 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu() 243 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() 262 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() 267 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() 273 struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6) in l3mdev_link_scope_lookup() 323 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() [all …]
|
/linux/net/tipc/ |
A D | bcast.c | 77 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() 470 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_ack_rcv() 498 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv() 689 int tipc_bcast_init(struct net *net) in tipc_bcast_init() 722 void tipc_bcast_stop(struct net *net) in tipc_bcast_stop() 761 u32 tipc_bcast_get_mode(struct net *net) in tipc_bcast_get_mode() [all …]
|
A D | bearer.c | 530 int tipc_bearer_mtu(struct net *net, u32 bearer_id) in tipc_bearer_mtu() 674 struct net *net = dev_net(dev); in tipc_l2_device_event() local 732 void tipc_bearer_stop(struct net *net) in tipc_bearer_stop() 782 int tipc_attach_loopback(struct net *net) in tipc_attach_loopback() 798 void tipc_detach_loopback(struct net *net) in tipc_detach_loopback() 869 struct net *net = sock_net(skb->sk); in tipc_nl_bearer_dump() local 903 struct net *net = genl_info_net(info); in tipc_nl_bearer_get() local 953 struct net *net = sock_net(skb->sk); in __tipc_nl_bearer_disable() local 996 struct net *net = sock_net(skb->sk); in __tipc_nl_bearer_enable() local 1052 struct net *net = sock_net(skb->sk); in tipc_nl_bearer_add() local [all …]
|
A D | net.c | 111 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/sctp/ |
A D | sm_statefuns.c | 1511 struct net *net, in sctp_sf_do_unexpected_init() 1730 struct net *net, in sctp_sf_do_5_2_1_siminit() 1785 struct net *net, in sctp_sf_do_5_2_2_dupinit() 1809 struct net *net, in sctp_sf_do_5_2_3_initack() 1855 struct net *net, in sctp_sf_do_dupcook_a() 1979 struct net *net, in sctp_sf_do_dupcook_b() 2063 struct net *net, in sctp_sf_do_dupcook_c() 2086 struct net *net, in sctp_sf_do_dupcook_d() 2198 struct net *net, in sctp_sf_do_5_2_4_dupcook() 2325 struct net *net, in sctp_sf_shutdown_pending_abort() [all …]
|
/linux/net/core/ |
A D | net_namespace.c | 154 struct net *net; in ops_pre_exit_list() local 165 struct net *net; in ops_exit_list() local 177 struct net *net; in ops_free_list() local 395 struct net *net = NULL; in net_alloc() local 447 struct net *net; in copy_net_ns() local 660 struct net *net; in get_net_ns_by_fd() local 681 struct net *net; in get_net_ns_by_pid() local 997 struct net *net; in rtnl_valid_dump_net_req() local 1135 struct net *net; in __register_pernet_operations() local 1162 struct net *net; in __unregister_pernet_operations() local [all …]
|
A D | fib_notifier.c | 29 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() 60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() 83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() 99 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() 121 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() 130 struct net *net) in __fib_notifier_ops_register() 143 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() 171 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() 180 static void __net_exit fib_notifier_net_exit(struct net *net) in fib_notifier_net_exit()
|
/linux/net/ipv4/ |
A D | fib_frontend.c | 151 int fib_unmerge(struct net *net) in fib_unmerge() 183 void fib_flush(struct net *net) in fib_flush() 276 struct net *net; in fib_compute_spec_dst() local 347 struct net *net = dev_net(dev); in __fib_validate_source() local 426 struct net *net = dev_net(dev); in fib_validate_source() local 841 struct net *net = sock_net(skb->sk); in inet_rtm_delroute() local 871 struct net *net = sock_net(skb->sk); in inet_rtm_newroute() local 972 struct net *net = sock_net(skb->sk); in inet_dump_fib() local 1356 struct net *net; in nl_fib_input() local 1416 struct net *net = dev_net(dev); in fib_inetaddr_event() local [all …]
|
A D | ipmr.c | 300 #define ipmr_for_each_table(mrt, net) \ argument 380 struct net *net) in ipmr_new_table_set() 494 struct net *net = dev_net(dev); in reg_vif_xmit() local 1324 struct net *net = sock_net(sk); in mrtsock_destruct() local 1351 struct net *net = sock_net(sk); in ip_mroute_setsockopt() local 1545 struct net *net = sock_net(sk); in ip_mroute_getsockopt() local 1591 struct net *net = sock_net(sk); in ipmr_ioctl() local 1666 struct net *net = sock_net(sk); in ipmr_compat_ioctl() local 1722 struct net *net = dev_net(dev); in ipmr_device_event() local 2074 struct net *net = dev_net(skb->dev); in ip_mr_input() local [all …]
|
A 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() 245 struct net *net = dev_net(skb->dev); in ip_local_deliver() local 315 static int ip_rcv_finish_core(struct net *net, struct sock *sk, in ip_rcv_finish_core() 415 static int ip_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip_rcv_finish() 436 static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net) in ip_rcv_core() 534 struct net *net = dev_net(dev); in ip_rcv() local 555 static struct sk_buff *ip_extract_route_hint(const struct net *net, in ip_extract_route_hint() 564 static void ip_list_rcv_finish(struct net *net, struct sock *sk, in ip_list_rcv_finish() 605 struct net *net) in ip_sublist_rcv() [all …]
|
/linux/net/mptcp/ |
A D | ctrl.c | 31 static struct mptcp_pernet *mptcp_get_pernet(const struct net *net) in mptcp_get_pernet() 36 int mptcp_is_enabled(const struct net *net) in mptcp_is_enabled() 41 unsigned int mptcp_get_add_addr_timeout(const struct net *net) in mptcp_get_add_addr_timeout() 46 int mptcp_is_checksum_enabled(const struct net *net) in mptcp_is_checksum_enabled() 51 int mptcp_allow_join_id0(const struct net *net) in mptcp_allow_join_id0() 56 unsigned int mptcp_stale_loss_cnt(const struct net *net) in mptcp_stale_loss_cnt() 114 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() 158 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() 167 static int __net_init mptcp_net_init(struct net *net) in mptcp_net_init() 177 static void __net_exit mptcp_net_exit(struct net *net) in mptcp_net_exit()
|
/linux/net/ipv6/ |
A D | ip6_fib.c | 43 struct net *net; member 74 #define FOR_WALKERS(net, w) \ argument 432 struct net *net; member 575 struct net *net = sock_net(skb->sk); in fib6_dump_table() local 622 struct net *net = sock_net(skb->sk); in inet6_dump_fib() local 1026 struct net *net) in fib6_purge_rt() 1908 struct net *net = info->nl_net; in fib6_del_route() local 2000 struct net *net = info->nl_net; in fib6_del() local 2537 struct net *net) in ipv6_route_seq_setup_walk() 2551 struct net *net) in ipv6_route_seq_next_table() [all …]
|
A D | ip6mr.c | 362 struct net *net) in ip6mr_new_table_set() 409 struct net *net = seq_file_net(seq); in ip6mr_vif_seq_start() local 459 struct net *net = seq_file_net(seq); in ipmr_mfc_seq_start() local 594 struct net *net = dev_net(dev); in reg_vif_xmit() local 1236 struct net *net = dev_net(dev); in ip6mr_device_event() local 1549 struct net *net = sock_net(sk); in ip6mr_sk_init() local 1575 struct net *net = sock_net(sk); in ip6mr_sk_done() local 1638 struct net *net = sock_net(sk); in ip6_mroute_setsockopt() local 1809 struct net *net = sock_net(sk); in ip6_mroute_getsockopt() local 1860 struct net *net = sock_net(sk); in ip6mr_ioctl() local [all …]
|
A D | reassembly.c | 84 fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif) in fq_find() 110 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue() local 253 struct net *net = fq->q.fqdir->net; in ip6_frag_reasm() local 326 struct net *net = dev_net(skb_dst(skb)->dev); in ipv6_frag_rcv() local 449 static int __net_init ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() 481 static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() 505 static int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() 510 static void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() 524 static int __net_init ipv6_frags_init_net(struct net *net) in ipv6_frags_init_net() 542 static void __net_exit ipv6_frags_pre_exit_net(struct net *net) in ipv6_frags_pre_exit_net() [all …]
|
/linux/fs/afs/ |
A D | server.c | 24 struct afs_server *afs_find_server(struct afs_net *net, in afs_find_server() 142 struct afs_net *net = cell->net; in afs_install_server() local 223 struct afs_net *net = cell->net; in afs_alloc_server() local 327 static void afs_set_server_timer(struct afs_net *net, time64_t delay) in afs_set_server_timer() 342 struct afs_net *net = container_of(timer, struct afs_net, fs_timer); in afs_servers_timer() local 393 void afs_put_server(struct afs_net *net, struct afs_server *server, in afs_put_server() 426 void afs_unuse_server(struct afs_net *net, struct afs_server *server, in afs_unuse_server() 478 static void afs_gc_servers(struct afs_net *net, struct afs_server *gc_list) in afs_gc_servers() 535 struct afs_net *net = container_of(work, struct afs_net, fs_manager); in afs_manage_servers() local 600 static void afs_queue_server_manager(struct afs_net *net) in afs_queue_server_manager() [all …]
|
A D | cell.c | 26 static void afs_dec_cells_outstanding(struct afs_net *net) in afs_dec_cells_outstanding() 36 static void afs_set_cell_timer(struct afs_net *net, time64_t delay) in afs_set_cell_timer() 51 static struct afs_cell *afs_find_cell_locked(struct afs_net *net, in afs_find_cell_locked() 98 struct afs_cell *afs_find_cell(struct afs_net *net, in afs_find_cell() 114 static struct afs_cell *afs_alloc_cell(struct afs_net *net, in afs_alloc_cell() 234 struct afs_cell *afs_lookup_cell(struct afs_net *net, in afs_lookup_cell() 343 int afs_cell_init(struct afs_net *net, const char *rootcell) in afs_cell_init() 492 struct afs_net *net = cell->net; in afs_cell_destroy() local 514 static void afs_queue_cell_manager(struct afs_net *net) in afs_queue_cell_manager() 740 struct afs_net *net = cell->net; in afs_manage_cell() local [all …]
|
A D | fs_probe.c | 22 static void afs_schedule_fs_probe(struct afs_net *net, in afs_schedule_fs_probe() 41 static void afs_finished_fs_probe(struct afs_net *net, struct afs_server *server) in afs_finished_fs_probe() 61 static void afs_done_one_fs_probe(struct afs_net *net, struct afs_server *server) in afs_done_one_fs_probe() 75 static void afs_fs_probe_not_done(struct afs_net *net, in afs_fs_probe_not_done() 195 void afs_fs_probe_fileserver(struct afs_net *net, struct afs_server *server, in afs_fs_probe_fileserver() 321 struct afs_net *net = container_of(timer, struct afs_net, fs_probe_timer); in afs_fs_probe_timer() local 330 static void afs_dispatch_fs_probe(struct afs_net *net, struct afs_server *server, bool all) in afs_dispatch_fs_probe() 351 void afs_probe_fileserver(struct afs_net *net, struct afs_server *server) in afs_probe_fileserver() 364 struct afs_net *net = container_of(work, struct afs_net, fs_prober); in afs_fs_probe_dispatcher() local 471 void afs_fs_probe_cleanup(struct afs_net *net) in afs_fs_probe_cleanup()
|
/linux/kernel/bpf/ |
A D | net_namespace.c | 21 struct net *net; member 55 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() 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 301 struct net *net; in netns_bpf_prog_attach() local 363 static int __netns_bpf_prog_detach(struct net *net, in __netns_bpf_prog_detach() 482 struct net *net; in netns_bpf_link_create() local [all …]
|
/linux/net/netfilter/ |
A D | nf_synproxy_core.c | 441 synproxy_send_tcp(struct net *net, in synproxy_send_tcp() 470 synproxy_send_client_synack(struct net *net, in synproxy_send_client_synack() 513 synproxy_send_server_syn(struct net *net, in synproxy_send_server_syn() 558 synproxy_send_server_ack(struct net *net, in synproxy_send_server_ack() 597 synproxy_send_client_ack(struct net *net, in synproxy_send_client_ack() 636 synproxy_recv_client_ack(struct net *net, in synproxy_recv_client_ack() 665 struct net *net = nhs->net; in ipv4_synproxy_hook() local 835 synproxy_send_tcp_ipv6(struct net *net, in synproxy_send_tcp_ipv6() 882 synproxy_send_client_synack_ipv6(struct net *net, in synproxy_send_client_synack_ipv6() 1052 synproxy_recv_client_ack_ipv6(struct net *net, in synproxy_recv_client_ack_ipv6() [all …]
|
A D | nf_log.c | 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() 205 void nf_log_packet(struct net *net, in nf_log_packet() 234 void nf_log_trace(struct net *net, in nf_log_trace() 318 struct net *net = seq_file_net(seq); in seq_start() local 330 struct net *net = seq_file_net(s); in seq_next() local 350 struct net *net = seq_file_net(s); in seq_show() local 413 struct net *net = table->extra2; in nf_log_proc_dostring() local 456 static int netfilter_log_sysctl_init(struct net *net) in netfilter_log_sysctl_init() 508 static void netfilter_log_sysctl_exit(struct net *net) in netfilter_log_sysctl_exit() [all …]
|
/linux/drivers/rapidio/ |
A D | rio-scan.c | 56 static u16 rio_destid_alloc(struct rio_net *net) in rio_destid_alloc() 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() 808 static void rio_scan_release_net(struct rio_net *net) in rio_scan_release_net() 816 struct rio_net *net; in rio_scan_release_dev() local 836 struct rio_net *net; in rio_scan_alloc_net() local 944 struct rio_net *net = NULL; in rio_enum_mport() local 1020 static void rio_build_route_tables(struct rio_net *net) in rio_build_route_tables() [all …]
|
/linux/fs/nfs_common/ |
A D | grace.c | 29 locks_start_grace(struct net *net, struct lock_manager *lm) in locks_start_grace() 63 __state_in_grace(struct net *net, bool open) in __state_in_grace() 90 bool locks_in_grace(struct net *net) in locks_in_grace() 96 bool opens_in_grace(struct net *net) in opens_in_grace() 103 grace_init_net(struct net *net) in grace_init_net() 112 grace_exit_net(struct net *net) in grace_exit_net()
|
/linux/net/bridge/ |
A D | br_netfilter_hooks.c | 93 const struct net *net) in is_vlan_ipv6() 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() 429 const struct net *net) in brnf_get_logical_dev() 968 struct net *net; in brnf_device_event() local 998 int br_nf_hook_thresh(unsigned int hook, struct net *net, in br_nf_hook_thresh() 1002 int (*okfn)(struct net *, struct sock *, in br_nf_hook_thresh() 1094 static int br_netfilter_sysctl_init_net(struct net *net) in br_netfilter_sysctl_init_net() 1126 static void br_netfilter_sysctl_exit_net(struct net *net, in br_netfilter_sysctl_exit_net() 1136 static int __net_init brnf_init_net(struct net *net) in brnf_init_net() [all …]
|
/linux/fs/nfsd/ |
A D | nfssvc.c | 276 int nfsd_nrthreads(struct net *net) in nfsd_nrthreads() 424 static void nfsd_shutdown_net(struct net *net) in nfsd_shutdown_net() 443 struct net *net = dev_net(dev); in nfsd_inetaddr_event() local 474 struct net *net = dev_net(dev); in nfsd_inet6addr_event() local 601 static void nfsd_complete_shutdown(struct net *net) in nfsd_complete_shutdown() 611 void nfsd_shutdown_threads(struct net *net) in nfsd_shutdown_threads() 637 int nfsd_create_serv(struct net *net) in nfsd_create_serv() 677 int nfsd_nrpools(struct net *net) in nfsd_nrpools() 700 void nfsd_destroy(struct net *net) in nfsd_destroy() 922 struct net *net = perm_sock->xpt_net; in nfsd() local [all …]
|