/net/tipc/ |
D | bcast.c | 76 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument 78 return tipc_net(net)->bcbase; in tipc_bc_base() 85 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument 87 return tipc_link_mtu(tipc_bc_sndlink(net)) - INT_H_SIZE; in tipc_bcast_get_mtu() 90 void tipc_bcast_disable_rcast(struct net *net) in tipc_bcast_disable_rcast() argument 92 tipc_bc_base(net)->rcast_support = false; in tipc_bcast_disable_rcast() 95 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument 97 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_calc_bc_threshold() 98 int cluster_size = tipc_link_bc_peers(tipc_bc_sndlink(net)); in tipc_bcbase_calc_bc_threshold() 106 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() argument [all …]
|
D | bcast.h | 80 int tipc_bcast_init(struct net *net); 81 void tipc_bcast_stop(struct net *net); 82 void tipc_bcast_add_peer(struct net *net, struct tipc_link *l, 84 void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_bcl); 85 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id); 86 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id); 87 int tipc_bcast_get_mtu(struct net *net); 88 void tipc_bcast_disable_rcast(struct net *net); 89 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts, 92 int tipc_bcast_rcv(struct net *net, struct tipc_link *l, struct sk_buff *skb); [all …]
|
D | node.h | 72 void tipc_node_stop(struct net *net); 73 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id); 75 u32 tipc_node_try_addr(struct net *net, u8 *id, u32 addr); 76 void tipc_node_check_dest(struct net *net, u32 onode, u8 *peer_id128, 81 void tipc_node_delete_links(struct net *net, int bearer_id); 82 void tipc_node_apply_property(struct net *net, struct tipc_bearer *b, int prop); 83 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node, 85 int tipc_node_xmit(struct net *net, struct sk_buff_head *list, u32 dnode, 87 int tipc_node_distr_xmit(struct net *net, struct sk_buff_head *list); 88 int tipc_node_xmit_skb(struct net *net, struct sk_buff *skb, u32 dest, [all …]
|
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); 74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size); 75 int tipc_nl_monitor_get_threshold(struct net *net); [all …]
|
D | bearer.h | 104 int (*send_msg)(struct net *net, struct sk_buff *buf, 107 int (*enable_media)(struct net *net, struct tipc_bearer *b, 179 void tipc_rcv(struct net *net, struct sk_buff *skb, struct tipc_bearer *b); 211 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b, 214 int tipc_l2_send_msg(struct net *net, struct sk_buff *buf, 217 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest); 218 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest); 219 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name); 220 int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id); 224 void tipc_bearer_stop(struct net *net); [all …]
|
D | net.c | 110 struct net *net; member 114 static void tipc_net_finalize(struct net *net, u32 addr); 116 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() argument 118 if (tipc_own_id(net)) { in tipc_net_init() 125 tipc_set_node_id(net, node_id); in tipc_net_init() 127 tipc_net_finalize(net, addr); in tipc_net_init() 131 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument 133 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize() 137 tipc_set_node_addr(net, addr); in tipc_net_finalize() 138 tipc_named_reinit(net); in tipc_net_finalize() [all …]
|
D | name_distr.c | 68 static struct sk_buff *named_prepare_buf(struct net *net, u32 type, u32 size, in named_prepare_buf() argument 72 u32 self = tipc_own_addr(net); in named_prepare_buf() 87 struct sk_buff *tipc_named_publish(struct net *net, struct publication *publ) in tipc_named_publish() argument 89 struct name_table *nt = tipc_name_table(net); in tipc_named_publish() 100 skb = named_prepare_buf(net, PUBLICATION, ITEM_SIZE, 0); in tipc_named_publish() 114 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ) in tipc_named_withdraw() argument 116 struct name_table *nt = tipc_name_table(net); in tipc_named_withdraw() 126 buf = named_prepare_buf(net, WITHDRAWAL, ITEM_SIZE, 0); in tipc_named_withdraw() 143 static void named_distribute(struct net *net, struct sk_buff_head *list, in named_distribute() argument 149 u32 msg_dsz = ((tipc_node_get_mtu(net, dnode, 0) - INT_H_SIZE) / in named_distribute() [all …]
|
/net/core/ |
D | net_namespace.c | 46 struct net init_net = { 84 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument 90 old_ng = rcu_dereference_protected(net->gen, in net_assign_generic() 116 rcu_assign_pointer(net->gen, ng); in net_assign_generic() 121 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument 131 err = net_assign_generic(net, *ops->id, data); in ops_init() 137 err = ops->init(net); in ops_init() 148 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() argument 151 kfree(net_generic(net, *ops->id)); in ops_free() 158 struct net *net; in ops_pre_exit_list() local [all …]
|
D | fib_notifier.c | 19 int call_fib_notifier(struct notifier_block *nb, struct net *net, in call_fib_notifier() argument 25 info->net = net; in call_fib_notifier() 31 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers() argument 36 info->net = net; in call_fib_notifiers() 47 struct net *net; in fib_seq_sum() local 51 for_each_net(net) { in fib_seq_sum() 52 fn_net = net_generic(net, fib_notifier_net_id); in fib_seq_sum() 57 fib_seq += ops->fib_seq_read(net); in fib_seq_sum() 68 static int fib_net_dump(struct net *net, struct notifier_block *nb) in fib_net_dump() argument 70 struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id); in fib_net_dump() [all …]
|
/net/can/ |
D | proc.c | 80 static void can_init_stats(struct net *net) in can_init_stats() argument 82 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats() 83 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats() 122 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update() local 123 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update() 128 can_init_stats(net); in can_stat_update() 132 can_init_stats(net); in can_stat_update() 136 can_init_stats(net); in can_stat_update() 140 can_init_stats(net); in can_stat_update() 144 can_init_stats(net); in can_stat_update() [all …]
|
/net/ipv6/ |
D | ip6_fib.c | 42 struct net *net; member 55 static struct fib6_info *fib6_find_prefix(struct net *net, 58 static struct fib6_node *fib6_repair_tree(struct net *net, 61 static int fib6_walk(struct net *net, struct fib6_walker *w); 73 #define FOR_WALKERS(net, w) \ argument 74 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh) 76 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() argument 78 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link() 79 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link() 80 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link() [all …]
|
D | fib6_rules.c | 50 int fib6_rules_dump(struct net *net, struct notifier_block *nb) in fib6_rules_dump() argument 52 return fib_rules_dump(net, nb, AF_INET6); in fib6_rules_dump() 55 unsigned int fib6_rules_seq_read(struct net *net) in fib6_rules_seq_read() argument 57 return fib_rules_seq_read(net, AF_INET6); in fib6_rules_seq_read() 61 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, in fib6_lookup() argument 66 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup() 74 l3mdev_update_flow(net, flowi6_to_flowi(fl6)); in fib6_lookup() 76 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup() 79 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup() 81 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup() [all …]
|
D | sysctl_net_ipv6.c | 32 struct net *net; in proc_rt6_multipath_hash_policy() local 35 net = container_of(table->data, struct net, in proc_rt6_multipath_hash_policy() 39 call_netevent_notifiers(NETEVENT_IPV6_MPATH_HASH_UPDATE, net); in proc_rt6_multipath_hash_policy() 201 static int __net_init ipv6_sysctl_net_init(struct net *net) in ipv6_sysctl_net_init() argument 213 ipv6_table[0].data = &net->ipv6.sysctl.bindv6only; in ipv6_sysctl_net_init() 214 ipv6_table[1].data = &net->ipv6.sysctl.anycast_src_echo_reply; in ipv6_sysctl_net_init() 215 ipv6_table[2].data = &net->ipv6.sysctl.flowlabel_consistency; in ipv6_sysctl_net_init() 216 ipv6_table[3].data = &net->ipv6.sysctl.auto_flowlabels; in ipv6_sysctl_net_init() 217 ipv6_table[4].data = &net->ipv6.sysctl.fwmark_reflect; in ipv6_sysctl_net_init() 218 ipv6_table[5].data = &net->ipv6.sysctl.idgen_retries; in ipv6_sysctl_net_init() [all …]
|
D | fib6_notifier.c | 10 int call_fib6_notifier(struct notifier_block *nb, struct net *net, in call_fib6_notifier() argument 15 return call_fib_notifier(nb, net, event_type, info); in call_fib6_notifier() 18 int call_fib6_notifiers(struct net *net, enum fib_event_type event_type, in call_fib6_notifiers() argument 22 return call_fib_notifiers(net, event_type, info); in call_fib6_notifiers() 25 static unsigned int fib6_seq_read(struct net *net) in fib6_seq_read() argument 27 return fib6_tables_seq_read(net) + fib6_rules_seq_read(net); in fib6_seq_read() 30 static int fib6_dump(struct net *net, struct notifier_block *nb) in fib6_dump() argument 34 err = fib6_rules_dump(net, nb); in fib6_dump() 38 return fib6_tables_dump(net, nb); in fib6_dump() 48 int __net_init fib6_notifier_init(struct net *net) in fib6_notifier_init() argument [all …]
|
/net/sctp/ |
D | sm_statefuns.c | 51 struct net *net, 60 struct net *net, 63 static void sctp_send_stale_cookie_err(struct net *net, 70 struct net *net, 77 struct net *net, 84 struct net *net, 93 struct net *net, 100 struct net *net, 109 struct net *net, 117 struct net *net, [all …]
|
/net/ipv4/ |
D | fib_frontend.c | 51 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init() argument 64 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init() 66 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init() 74 static bool fib4_has_custom_rules(struct net *net) in fib4_has_custom_rules() argument 80 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument 87 tb = fib_get_table(net, id); in fib_new_table() 91 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table() 92 alias = fib_new_table(net, RT_TABLE_MAIN); in fib_new_table() 100 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table() 103 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table() [all …]
|
D | fib_notifier.c | 12 int call_fib4_notifier(struct notifier_block *nb, struct net *net, in call_fib4_notifier() argument 17 return call_fib_notifier(nb, net, event_type, info); in call_fib4_notifier() 20 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, in call_fib4_notifiers() argument 26 net->ipv4.fib_seq++; in call_fib4_notifiers() 27 return call_fib_notifiers(net, event_type, info); in call_fib4_notifiers() 30 static unsigned int fib4_seq_read(struct net *net) in fib4_seq_read() argument 34 return net->ipv4.fib_seq + fib4_rules_seq_read(net); in fib4_seq_read() 37 static int fib4_dump(struct net *net, struct notifier_block *nb) in fib4_dump() argument 41 err = fib4_rules_dump(net, nb); in fib4_dump() 45 fib_notify(net, nb); in fib4_dump() [all …]
|
D | xfrm4_policy.c | 20 static struct dst_entry *__xfrm4_dst_lookup(struct net *net, struct flowi4 *fl4, in __xfrm4_dst_lookup() argument 31 fl4->flowi4_oif = l3mdev_master_ifindex_by_index(net, oif); in __xfrm4_dst_lookup() 38 rt = __ip_route_output_key(net, fl4); in __xfrm4_dst_lookup() 45 static struct dst_entry *xfrm4_dst_lookup(struct net *net, int tos, int oif, in xfrm4_dst_lookup() argument 52 return __xfrm4_dst_lookup(net, &fl4, tos, oif, saddr, daddr, mark); in xfrm4_dst_lookup() 55 static int xfrm4_get_saddr(struct net *net, int oif, in xfrm4_get_saddr() argument 62 dst = __xfrm4_dst_lookup(net, &fl4, 0, oif, NULL, daddr, mark); in xfrm4_get_saddr() 171 static __net_init int xfrm4_net_sysctl_init(struct net *net) in xfrm4_net_sysctl_init() argument 177 if (!net_eq(net, &init_net)) { in xfrm4_net_sysctl_init() 182 table[0].data = &net->xfrm.xfrm4_dst_ops.gc_thresh; in xfrm4_net_sysctl_init() [all …]
|
D | ip_input.c | 154 struct net *net = dev_net(dev); in ip_call_ra_chain() local 156 for (ra = rcu_dereference(net->ipv4.ra_chain); ra; ra = rcu_dereference(ra->next)) { in ip_call_ra_chain() 166 if (ip_defrag(net, skb, IP_DEFRAG_CALL_RA_CHAIN)) in ip_call_ra_chain() 187 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) in ip_protocol_deliver_rcu() argument 210 __IP_INC_STATS(net, IPSTATS_MIB_INDELIVERS); in ip_protocol_deliver_rcu() 214 __IP_INC_STATS(net, IPSTATS_MIB_INUNKNOWNPROTOS); in ip_protocol_deliver_rcu() 220 __IP_INC_STATS(net, IPSTATS_MIB_INDELIVERS); 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() argument 231 ip_protocol_deliver_rcu(net, skb, ip_hdr(skb)->protocol); in ip_local_deliver_finish() 245 struct net *net = dev_net(skb->dev); in ip_local_deliver() local [all …]
|
/net/xfrm/ |
D | xfrm_sysctl.c | 7 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init() argument 9 net->xfrm.sysctl_aevent_etime = XFRM_AE_ETIME; in __xfrm_sysctl_init() 10 net->xfrm.sysctl_aevent_rseqth = XFRM_AE_SEQT_SIZE; in __xfrm_sysctl_init() 11 net->xfrm.sysctl_larval_drop = 1; in __xfrm_sysctl_init() 12 net->xfrm.sysctl_acq_expires = 30; in __xfrm_sysctl_init() 44 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init() argument 48 __xfrm_sysctl_init(net); in xfrm_sysctl_init() 53 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init() 54 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init() 55 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init() [all …]
|
D | xfrm_policy.c | 110 possible_net_t net; member 170 xfrm_policy_inexact_lookup(struct net *net, u8 type, u16 family, u8 dir, 174 xfrm_policy_inexact_lookup_rcu(struct net *net, 250 struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, int oif, in __xfrm_dst_lookup() argument 262 dst = afinfo->dst_lookup(net, tos, oif, saddr, daddr, mark); in __xfrm_dst_lookup() 276 struct net *net = xs_net(x); in xfrm_dst_lookup() local 290 dst = __xfrm_dst_lookup(net, tos, oif, saddr, daddr, family, mark); in xfrm_dst_lookup() 384 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc() argument 391 write_pnet(&policy->xp_net, net); in xfrm_policy_alloc() 450 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash() argument [all …]
|
/net/netfilter/ |
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() argument 49 if (pf == NFPROTO_UNSPEC || pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_set() 53 log = nft_log_dereference(net->nf.nf_loggers[pf]); in nf_log_set() 55 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_set() 63 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset() argument 70 log = nft_log_dereference(net->nf.nf_loggers[i]); in nf_log_unset() 72 RCU_INIT_POINTER(net->nf.nf_loggers[i], NULL); in nf_log_unset() 128 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf() argument 131 if (pf >= ARRAY_SIZE(net->nf.nf_loggers)) in nf_log_bind_pf() 138 rcu_assign_pointer(net->nf.nf_loggers[pf], logger); in nf_log_bind_pf() [all …]
|
/net/ipv6/netfilter/ |
D | ip6table_nat.c | 18 static int __net_init ip6table_nat_table_init(struct net *net); 35 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_nat); in ip6table_nat_do_chain() 65 static int ip6t_nat_register_lookups(struct net *net) in ip6t_nat_register_lookups() argument 70 ret = nf_nat_ipv6_register_fn(net, &nf_nat_ipv6_ops[i]); in ip6t_nat_register_lookups() 73 nf_nat_ipv6_unregister_fn(net, &nf_nat_ipv6_ops[--i]); in ip6t_nat_register_lookups() 82 static void ip6t_nat_unregister_lookups(struct net *net) in ip6t_nat_unregister_lookups() argument 87 nf_nat_ipv6_unregister_fn(net, &nf_nat_ipv6_ops[i]); in ip6t_nat_unregister_lookups() 90 static int __net_init ip6table_nat_table_init(struct net *net) in ip6table_nat_table_init() argument 95 if (net->ipv6.ip6table_nat) in ip6table_nat_table_init() 101 ret = ip6t_register_table(net, &nf_nat_ipv6_table, repl, in ip6table_nat_table_init() [all …]
|
/net/ipv4/netfilter/ |
D | iptable_nat.c | 16 static int __net_init iptable_nat_table_init(struct net *net); 33 return ipt_do_table(skb, state, state->net->ipv4.nat_table); in iptable_nat_do_chain() 63 static int ipt_nat_register_lookups(struct net *net) in ipt_nat_register_lookups() argument 68 ret = nf_nat_ipv4_register_fn(net, &nf_nat_ipv4_ops[i]); in ipt_nat_register_lookups() 71 nf_nat_ipv4_unregister_fn(net, &nf_nat_ipv4_ops[--i]); in ipt_nat_register_lookups() 80 static void ipt_nat_unregister_lookups(struct net *net) in ipt_nat_unregister_lookups() argument 85 nf_nat_ipv4_unregister_fn(net, &nf_nat_ipv4_ops[i]); in ipt_nat_unregister_lookups() 88 static int __net_init iptable_nat_table_init(struct net *net) in iptable_nat_table_init() argument 93 if (net->ipv4.nat_table) in iptable_nat_table_init() 99 ret = ipt_register_table(net, &nf_nat_ipv4_table, repl, in iptable_nat_table_init() [all …]
|
/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() argument 87 struct brnf_net *brnet = net_generic(net, brnf_net_id); in is_vlan_ip() 93 const struct net *net) in is_vlan_ipv6() argument 95 struct brnf_net *brnet = net_generic(net, brnf_net_id); in is_vlan_ipv6() 101 static inline bool is_vlan_arp(const struct sk_buff *skb, const struct net *net) in is_vlan_arp() argument 103 struct brnf_net *brnet = net_generic(net, brnf_net_id); in is_vlan_arp() 114 static inline bool is_pppoe_ip(const struct sk_buff *skb, const struct net *net) in is_pppoe_ip() argument 116 struct brnf_net *brnet = net_generic(net, brnf_net_id); in is_pppoe_ip() 123 const struct net *net) in is_pppoe_ipv6() argument 125 struct brnf_net *brnet = net_generic(net, brnf_net_id); in is_pppoe_ipv6() [all …]
|