| /net/core/ |
| A D | net_namespace.c | 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 536 struct net *net = (struct net *)p; in net_drop_ns() local 546 struct net *net; in copy_net_ns() local 741 struct net *net; in get_net_ns() local 771 struct net *net; in get_net_ns_by_pid() local 1121 struct net *net; in rtnl_valid_dump_net_req() local 1305 struct net *net; in __register_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() argument 40 static unsigned int fib_seq_sum(struct net *net) in fib_seq_sum() argument 58 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument 81 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument 88 if (fib_seq == fib_seq_sum(net)) in fib_dump_is_consistent() 97 int register_fib_notifier(struct net *net, struct notifier_block *nb, in register_fib_notifier() argument 119 int unregister_fib_notifier(struct net *net, struct notifier_block *nb) in unregister_fib_notifier() argument 128 struct net *net) in __fib_notifier_ops_register() argument 141 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net) in fib_notifier_ops_register() argument 169 static int __net_init fib_notifier_net_init(struct net *net) in fib_notifier_net_init() argument [all …]
|
| /net/tipc/ |
| A D | bcast.c | 77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument 86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument 91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() argument 96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument 107 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() argument 470 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_ack_rcv() argument 498 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, in tipc_bcast_sync_rcv() argument 689 int tipc_bcast_init(struct net *net) in tipc_bcast_init() argument 722 void tipc_bcast_stop(struct net *net) in tipc_bcast_stop() argument 761 u32 tipc_bcast_get_mode(struct net *net) in tipc_bcast_get_mode() argument [all …]
|
| A D | bcast.h | 81 int tipc_bcast_init(struct net *net); 82 void tipc_bcast_stop(struct net *net); 83 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l, 88 int tipc_bcast_get_mtu(struct net *net); 89 void tipc_bcast_toggle_rcast(struct net *net, bool supp); 96 void tipc_bcast_ack_rcv(struct net *net, struct tipc_link *l, 98 int tipc_bcast_sync_rcv(struct net *net, struct tipc_link *l, 106 u32 tipc_bcast_get_mode(struct net *net); 107 u32 tipc_bcast_get_broadcast_ratio(struct net *net); 112 static inline void tipc_bcast_lock(struct net *net) in tipc_bcast_lock() argument [all …]
|
| A D | node.h | 77 void tipc_node_stop(struct net *net); 78 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id); 91 u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr); 92 void tipc_node_check_dest(struct net *net, u32 onode, u8 *peer_id128, 97 void tipc_node_delete_links(struct net *net, int bearer_id); 99 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node, 103 int tipc_node_distr_xmit(struct net *net, struct sk_buff_head *list); 104 int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dest, 110 void tipc_node_remove_conn(struct net *net, u32 dnode, u32 port); 112 bool tipc_node_is_up(struct net *net, u32 addr); [all …]
|
| A D | bearer.h | 105 int (*send_msg)(struct net *net, struct sk_buff *buf, 108 int (*enable_media)(struct net *net, struct tipc_bearer *b, 233 void tipc_bearer_stop(struct net *net); 234 int tipc_bearer_mtu(struct net *net, u32 bearer_id); 235 int tipc_bearer_min_mtu(struct net *net, u32 bearer_id); 237 void tipc_bearer_xmit_skb(struct net *net, u32 bearer_id, 240 void tipc_bearer_xmit(struct net *net, u32 bearer_id, 244 void tipc_bearer_bc_xmit(struct net *net, u32 bearer_id, 247 int tipc_attach_loopback(struct net *net); 248 void tipc_detach_loopback(struct net *net); [all …]
|
| A D | monitor.h | 60 int tipc_mon_create(struct net *net, int bearer_id); 61 void tipc_mon_delete(struct net *net, int bearer_id); 63 void tipc_mon_peer_up(struct net *net, u32 addr, int bearer_id); 64 void tipc_mon_peer_down(struct net *net, u32 addr, int bearer_id); 65 void tipc_mon_prep(struct net *net, void *data, int *dlen, 67 void tipc_mon_rcv(struct net *net, void *data, u16 dlen, u32 addr, 69 void tipc_mon_get_state(struct net *net, u32 addr, 72 void tipc_mon_remove_peer(struct net *net, u32 addr, int bearer_id); 75 int tipc_nl_monitor_get_threshold(struct net *net); 76 int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg, [all …]
|
| A D | net.c | 109 static void tipc_net_finalize(struct net *net, u32 addr); 111 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() argument 126 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument 139 tipc_sk_reinit(net); in tipc_net_finalize() 151 void tipc_net_stop(struct net *net) in tipc_net_stop() argument 153 if (!tipc_own_id(net)) in tipc_net_stop() 158 tipc_node_stop(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() argument 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 [all …]
|
| A D | bearer.c | 533 int tipc_bearer_mtu(struct net *net, u32 bearer_id) in tipc_bearer_mtu() argument 690 struct net *net = dev_net(dev); in tipc_l2_device_event() local 748 void tipc_bearer_stop(struct net *net) in tipc_bearer_stop() argument 798 int tipc_attach_loopback(struct net *net) in tipc_attach_loopback() argument 814 void tipc_detach_loopback(struct net *net) in tipc_detach_loopback() argument 885 struct net *net = sock_net(skb->sk); in tipc_nl_bearer_dump() local 919 struct net *net = genl_info_net(info); in tipc_nl_bearer_get() local 969 struct net *net = sock_net(skb->sk); in __tipc_nl_bearer_disable() local 1012 struct net *net = sock_net(skb->sk); in __tipc_nl_bearer_enable() local 1068 struct net *net = sock_net(skb->sk); in tipc_nl_bearer_add() local [all …]
|
| /net/can/ |
| A D | proc.c | 79 static void can_init_stats(struct net *net) in can_init_stats() argument 117 struct net *net = timer_container_of(net, t, can.stattimer); in can_stat_update() local 130 can_init_stats(net); in can_stat_update() 217 struct net *net = m->private; in can_stats_proc_show() local 282 struct net *net = m->private; in can_reset_stats_proc_show() local 319 struct net *net = m->private; in can_rcvlist_proc_show() local 373 struct net *net = m->private; in can_rcvlist_sff_proc_show() local 406 struct net *net = m->private; in can_rcvlist_eff_proc_show() local 438 void can_init_proc(struct net *net) in can_init_proc() argument 441 net->can.proc_dir = proc_net_mkdir(net, "can", net->proc_net); in can_init_proc() [all …]
|
| /net/sctp/ |
| A D | sm_statefuns.c | 52 struct net *net, 61 struct net *net, 71 struct net *net, 78 struct net *net, 85 struct net *net, 92 struct net *net, 101 struct net *net, 108 struct net *net, 117 struct net *net, 1393 struct net *net = new_asoc->base.net; in sctp_sf_check_restart_addrs() local [all …]
|
| A D | protocol.c | 104 static void sctp_get_local_addr_list(struct net *net) in sctp_get_local_addr_list() argument 121 static void sctp_free_local_addr_list(struct net *net) in sctp_free_local_addr_list() argument 354 struct net *net = sock_net(sk); in sctp_v4_available() local 634 struct net *net = timer_container_of(net, t, sctp.addr_wq_timer); in sctp_addr_wq_timeout_handler() local 692 static void sctp_free_addr_wq(struct net *net) in sctp_free_addr_wq() argument 803 struct net *net = dev_net(ifa->ifa_dev->dev); in sctp_inetaddr_event() local 846 static int sctp_ctl_sock_init(struct net *net) in sctp_ctl_sock_init() argument 879 int sctp_udp_sock_start(struct net *net) in sctp_udp_sock_start() argument 927 void sctp_udp_sock_stop(struct net *net) in sctp_udp_sock_stop() argument 1247 static inline int init_sctp_mibs(struct net *net) in init_sctp_mibs() argument [all …]
|
| /net/ipv6/ |
| A D | ip6_fib.c | 44 struct net *net; member 440 struct net *net; member 502 arg.net = net; in fib6_tables_dump() 585 struct net *net = sock_net(skb->sk); in fib6_dump_table() local 679 arg.net = net; in inet6_dump_fib() 1032 struct net *net) in fib6_purge_rt() argument 1969 struct net *net = info->nl_net; in fib6_del_route() local 2060 struct net *net = info->nl_net; in fib6_del() local 2296 c.net = net; in fib6_clean_tree() 2639 struct net *net) in ipv6_route_seq_setup_walk() argument [all …]
|
| A D | ip6mr.c | 376 struct net *net) in ip6mr_new_table_set() argument 407 struct net *net = read_pnet(&mrt->net); in ip6mr_free_table() local 615 struct net *net = dev_net(dev); in reg_vif_xmit() local 792 struct net *net = read_pnet(&mrt->net); in ip6mr_destroy_unres() local 1262 struct net *net = dev_net(dev); in ip6mr_device_event() local 1374 struct net *net; in ip6mr_net_exit_batch() local 1587 struct net *net = sock_net(sk); in ip6mr_sk_init() local 1612 struct net *net = sock_net(sk); in ip6mr_sk_done() local 1681 struct net *net = sock_net(sk); in ip6_mroute_setsockopt() local 2566 struct net *net = read_pnet(&mrt->net); in mr6_netlink_event() local [all …]
|
| A D | reassembly.c | 85 fq_find(struct net *net, __be32 id, const struct ipv6hdr *hdr, int iif) in fq_find() argument 107 static int ip6_frag_queue(struct net *net, in ip6_frag_queue() argument 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() argument 511 static int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register() argument 516 static void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister() argument 530 static int __net_init ipv6_frags_init_net(struct net *net) in ipv6_frags_init_net() argument 534 res = fqdir_init(&net->ipv6.fqdir, &ip6_frags, 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() argument [all …]
|
| A D | fib6_rules.c | 62 unsigned int fib6_rules_seq_read(const struct net *net) in fib6_rules_seq_read() argument 68 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, in fib6_lookup() argument 86 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup() 89 err = fib6_table_lookup(net, net->ipv6.fib6_main_tbl, in fib6_lookup() 121 net, net->ipv6.fib6_local_tbl, fl6, skb, flags); in fib6_rule_lookup() 126 net, net->ipv6.fib6_main_tbl, fl6, skb, flags); in fib6_rule_lookup() 167 struct net *net = rule->fr_net; in fib6_rule_action_alt() local 207 struct net *net = rule->fr_net; in __fib6_rule_action() local 428 struct net *net = rule->fr_net; in fib6_rule_configure() local 482 struct net *net = rule->fr_net; in fib6_rule_delete() local [all …]
|
| /net/ipv4/ |
| A D | fib_frontend.c | 152 int fib_unmerge(struct net *net) in fib_unmerge() argument 184 void fib_flush(struct net *net) in fib_flush() argument 277 struct net *net; in fib_compute_spec_dst() local 348 struct net *net = dev_net(dev); in __fib_validate_source() local 433 struct net *net = dev_net(dev); in fib_validate_source() local 878 struct net *net = sock_net(skb->sk); in inet_rtm_delroute() local 912 struct net *net = sock_net(skb->sk); in inet_rtm_newroute() local 1405 struct net *net; in nl_fib_input() local 1465 struct net *net = dev_net(dev); in fib_inetaddr_event() local 1498 struct net *net = dev_net(dev); in fib_netdev_event() local [all …]
|
| A D | ip_input.c | 154 struct net *net = dev_net(dev); in ip_call_ra_chain() local 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() argument 461 static struct sk_buff *ip_rcv_core(struct sk_buff *skb, struct net *net) in ip_rcv_core() argument 507 __IP_ADD_STATS(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() argument 599 static void ip_list_rcv_finish(struct net *net, struct list_head *head) in ip_list_rcv_finish() argument 638 struct net *net) in ip_sublist_rcv() argument 656 struct net *net = dev_net(dev); in ip_list_rcv() local [all …]
|
| A D | fib_notifier.c | 19 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, in call_fib4_notifiers() argument 26 WRITE_ONCE(net->ipv4.fib_seq, net->ipv4.fib_seq + 1); in call_fib4_notifiers() 30 static unsigned int fib4_seq_read(const struct net *net) in fib4_seq_read() argument 33 return READ_ONCE(net->ipv4.fib_seq) + fib4_rules_seq_read(net); in fib4_seq_read() 36 static int fib4_dump(struct net *net, struct notifier_block *nb, in fib4_dump() argument 41 err = fib4_rules_dump(net, nb, extack); in fib4_dump() 45 return fib_notify(net, nb, extack); in fib4_dump() 55 int __net_init fib4_notifier_init(struct net *net) in fib4_notifier_init() argument 59 net->ipv4.fib_seq = 0; in fib4_notifier_init() 64 net->ipv4.notifier_ops = ops; in fib4_notifier_init() [all …]
|
| A D | ip_fragment.c | 87 struct net *net = q->fqdir->net; in ip4_frag_init() local 129 struct net *net; in ip_expire() local 134 net = qp->q.fqdir->net; in ip_expire() 197 static struct ipq *ip_find(struct net *net, struct iphdr *iph, in ip_find() argument 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 641 static int ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register() argument 646 static void ip4_frags_ns_ctl_unregister(struct net *net) in ip4_frags_ns_ctl_unregister() argument 655 static int __net_init ipv4_frags_init_net(struct net *net) in ipv4_frags_init_net() argument 659 res = fqdir_init(&net->ipv4.fqdir, &ip4_frags, net); in ipv4_frags_init_net() [all …]
|
| /net/netfilter/ |
| A D | nf_log.c | 154 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() argument 170 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf() argument 237 void nf_log_packet(struct net *net, in nf_log_packet() argument 266 void nf_log_trace(struct net *net, in nf_log_trace() argument 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 487 static int netfilter_log_sysctl_init(struct net *net) in netfilter_log_sysctl_init() argument 540 static void netfilter_log_sysctl_exit(struct net *net) in netfilter_log_sysctl_exit() argument [all …]
|
| A D | nf_conntrack_standalone.c | 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() argument 524 u32 nf_conntrack_count(const struct net *net) in nf_conntrack_count() argument 1078 static void nf_conntrack_fini_net(struct net *net) in nf_conntrack_fini_net() argument 1087 static int nf_conntrack_pernet_init(struct net *net) in nf_conntrack_pernet_init() argument [all …]
|
| /net/xfrm/ |
| A D | xfrm_policy.c | 298 struct net *net = xs_net(x); in xfrm_dst_lookup() local 312 params.net = net; in xfrm_dst_lookup() 758 struct net *net = xp_net(pol); in xfrm_policy_inexact_alloc_bin() local 762 write_pnet(&k.net, net); in xfrm_policy_inexact_alloc_bin() 1161 struct net *net = read_pnet(&b->k.net); in xfrm_policy_inexact_prune_bin() local 1183 struct net *net; in xfrm_policy_inexact_alloc_chain() local 1244 struct net *net; in xfrm_policy_inexact_insert() local 1284 struct net *net = container_of(work, struct net, in xfrm_hash_rebuild() local 2072 write_pnet(&k.net, net); in xfrm_policy_inexact_lookup_rcu() 2511 params.net = net; in xfrm_tmpl_resolve_one() [all …]
|
| A D | xfrm_sysctl.c | 7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument 11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init() 12 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init() 43 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument 48 __xfrm_sysctl_init(net); in xfrm_sysctl_init() 59 if (net->user_ns != &init_user_ns) in xfrm_sysctl_init() 62 net->xfrm.sysctl_hdr = register_net_sysctl_sz(net, "net/core", table, in xfrm_sysctl_init() 64 if (!net->xfrm.sysctl_hdr) in xfrm_sysctl_init() 74 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini() argument 83 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument [all …]
|
| /net/bridge/ |
| A D | br_netfilter_hooks.c | 91 static inline bool is_vlan_ip(const struct sk_buff *skb, const struct net *net) in is_vlan_ip() argument 99 const struct net *net) in is_vlan_ipv6() argument 129 const struct net *net) in is_pppoe_ipv6() argument 205 static int br_validate_ipv4(struct net *net, struct sk_buff *skb) in br_validate_ipv4() argument 432 const struct net *net) in brnf_get_logical_dev() argument 1098 struct net *net; in brnf_device_event() local 1128 int br_nf_hook_thresh(unsigned int hook, struct net *net, in br_nf_hook_thresh() argument 1238 static int br_netfilter_sysctl_init_net(struct net *net) in br_netfilter_sysctl_init_net() argument 1271 static void br_netfilter_sysctl_exit_net(struct net *net, in br_netfilter_sysctl_exit_net() argument 1281 static int __net_init brnf_init_net(struct net *net) in brnf_init_net() argument [all …]
|