Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 624) sorted by relevance

12345678910>>...25

/net/tipc/
Dbcast.h81 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,
85 void tipc_bcast_remove_peer(struct net *net, struct tipc_link *rcv_bcl);
86 void tipc_bcast_inc_bearer_dst_cnt(struct net *net, int bearer_id);
87 void tipc_bcast_dec_bearer_dst_cnt(struct net *net, int bearer_id);
88 int tipc_bcast_get_mtu(struct net *net);
89 void tipc_bcast_toggle_rcast(struct net *net, bool supp);
90 int tipc_mcast_xmit(struct net *net, struct sk_buff_head *pkts,
93 int tipc_bcast_xmit(struct net *net, struct sk_buff_head *pkts,
[all …]
Dbcast.c77 static struct tipc_bc_base *tipc_bc_base(struct net *net) in tipc_bc_base() argument
79 return tipc_net(net)->bcbase; in tipc_bc_base()
86 int tipc_bcast_get_mtu(struct net *net) in tipc_bcast_get_mtu() argument
88 return tipc_link_mss(tipc_bc_sndlink(net)); in tipc_bcast_get_mtu()
91 void tipc_bcast_toggle_rcast(struct net *net, bool supp) in tipc_bcast_toggle_rcast() argument
93 tipc_bc_base(net)->rcast_support = supp; in tipc_bcast_toggle_rcast()
96 static void tipc_bcbase_calc_bc_threshold(struct net *net) in tipc_bcbase_calc_bc_threshold() argument
98 struct tipc_bc_base *bb = tipc_bc_base(net); in tipc_bcbase_calc_bc_threshold()
99 int cluster_size = tipc_link_bc_peers(tipc_bc_sndlink(net)); in tipc_bcbase_calc_bc_threshold()
107 static void tipc_bcbase_select_primary(struct net *net) in tipc_bcbase_select_primary() argument
[all …]
Dnode.h77 void tipc_node_stop(struct net *net);
78 bool tipc_node_get_id(struct net *net, u32 addr, u8 *id);
83 struct tipc_node *tipc_node_create(struct net *net, u32 addr, u8 *peer_id,
89 struct tipc_crypto *tipc_node_crypto_rx_by_addr(struct net *net, u32 addr);
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);
98 void tipc_node_apply_property(struct net *net, struct tipc_bearer *b, int prop);
99 int tipc_node_get_linkname(struct net *net, u32 bearer_id, u32 node,
101 int tipc_node_xmit(struct net *net, struct sk_buff_head *list, u32 dnode,
[all …]
Dbearer.h105 int (*send_msg)(struct net *net, struct sk_buff *buf,
108 int (*enable_media)(struct net *net, struct tipc_bearer *b,
186 void tipc_rcv(struct net *net, struct sk_buff *skb, struct tipc_bearer *b);
218 int tipc_enable_l2_media(struct net *net, struct tipc_bearer *b,
223 int tipc_l2_send_msg(struct net *net, struct sk_buff *buf,
226 void tipc_bearer_add_dest(struct net *net, u32 bearer_id, u32 dest);
227 void tipc_bearer_remove_dest(struct net *net, u32 bearer_id, u32 dest);
228 struct tipc_bearer *tipc_bearer_find(struct net *net, const char *name);
229 int tipc_bearer_get_name(struct net *net, char *name, u32 bearer_id);
233 void tipc_bearer_stop(struct net *net);
[all …]
Dmonitor.h60 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 …]
Dnet.c109 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
113 if (tipc_own_id(net)) { in tipc_net_init()
120 tipc_set_node_id(net, node_id); in tipc_net_init()
122 tipc_net_finalize(net, addr); in tipc_net_init()
126 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument
128 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize()
132 tipc_set_node_addr(net, addr); in tipc_net_finalize()
133 tipc_named_reinit(net); in tipc_net_finalize()
134 tipc_sk_reinit(net); in tipc_net_finalize()
[all …]
Dname_distr.c68 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()
115 struct sk_buff *tipc_named_withdraw(struct net *net, struct publication *publ) in tipc_named_withdraw() argument
117 struct name_table *nt = tipc_name_table(net); in tipc_named_withdraw()
127 skb = named_prepare_buf(net, WITHDRAWAL, ITEM_SIZE, 0); in tipc_named_withdraw()
145 static void named_distribute(struct net *net, struct sk_buff_head *list, in named_distribute() argument
151 u32 msg_dsz = ((tipc_node_get_mtu(net, dnode, 0, false) - INT_H_SIZE) / in named_distribute()
[all …]
/net/core/
Dnet_namespace.c47 struct net init_net = {
87 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument
93 old_ng = rcu_dereference_protected(net->gen, in net_assign_generic()
119 rcu_assign_pointer(net->gen, ng); in net_assign_generic()
124 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument
135 err = net_assign_generic(net, *ops->id, data); in ops_init()
141 err = ops->init(net); in ops_init()
146 ng = rcu_dereference_protected(net->gen, in ops_init()
158 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free() argument
161 kfree(net_generic(net, *ops->id)); in ops_free()
[all …]
Dfib_notifier.c29 int call_fib_notifiers(struct net *net, enum fib_event_type event_type, in call_fib_notifiers() argument
32 struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id); in call_fib_notifiers()
40 static unsigned int fib_seq_sum(struct net *net) in fib_seq_sum() argument
42 struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id); in fib_seq_sum()
51 fib_seq += ops->fib_seq_read(net); in fib_seq_sum()
60 static int fib_net_dump(struct net *net, struct notifier_block *nb, in fib_net_dump() argument
63 struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id); in fib_net_dump()
71 err = ops->fib_dump(net, nb, extack); in fib_net_dump()
83 static bool fib_dump_is_consistent(struct net *net, struct notifier_block *nb, in fib_dump_is_consistent() argument
87 struct fib_notifier_net *fn_net = net_generic(net, fib_notifier_net_id); in fib_dump_is_consistent()
[all …]
/net/can/
Dproc.c79 static void can_init_stats(struct net *net) in can_init_stats() argument
81 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_init_stats()
82 struct can_rcv_lists_stats *rcv_lists_stats = net->can.rcv_lists_stats; in can_init_stats()
121 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update() local
122 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
127 can_init_stats(net); in can_stat_update()
131 can_init_stats(net); in can_stat_update()
135 can_init_stats(net); in can_stat_update()
139 can_init_stats(net); in can_stat_update()
143 can_init_stats(net); in can_stat_update()
[all …]
/net/sctp/
Dsm_statefuns.c51 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 …]
Dprotocol.c102 static void sctp_get_local_addr_list(struct net *net) in sctp_get_local_addr_list() argument
109 for_each_netdev_rcu(net, dev) { in sctp_get_local_addr_list()
112 af->copy_addrlist(&net->sctp.local_addr_list, dev); in sctp_get_local_addr_list()
119 static void sctp_free_local_addr_list(struct net *net) in sctp_free_local_addr_list() argument
124 list_for_each_safe(pos, temp, &net->sctp.local_addr_list) { in sctp_free_local_addr_list()
132 int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, in sctp_copy_local_addr_list() argument
140 list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) { in sctp_copy_local_addr_list()
143 if (!sctp_in_scope(net, &addr->a, scope)) in sctp_copy_local_addr_list()
354 struct net *net = sock_net(&sp->inet.sk); in sctp_v4_available() local
355 int ret = inet_addr_type(net, addr->v4.sin_addr.s_addr); in sctp_v4_available()
[all …]
/net/ipv6/
Dip6_fib.c42 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 …]
Dfib6_rules.c51 int fib6_rules_dump(struct net *net, struct notifier_block *nb, in fib6_rules_dump() argument
54 return fib_rules_dump(net, nb, AF_INET6, extack); in fib6_rules_dump()
57 unsigned int fib6_rules_seq_read(struct net *net) in fib6_rules_seq_read() argument
59 return fib_rules_seq_read(net, AF_INET6); in fib6_rules_seq_read()
63 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6, in fib6_lookup() argument
68 if (net->ipv6.fib6_has_custom_rules) { in fib6_lookup()
76 l3mdev_update_flow(net, flowi6_to_flowi(fl6)); in fib6_lookup()
78 err = fib_rules_lookup(net->ipv6.fib6_rules_ops, in fib6_lookup()
81 err = fib6_table_lookup(net, net->ipv6.fib6_local_tbl, oif, in fib6_lookup()
83 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup()
[all …]
/net/ipv4/
Dfib_frontend.c51 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()
75 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument
82 tb = fib_get_table(net, id); in fib_new_table()
86 if (id == RT_TABLE_LOCAL && !net->ipv4.fib_has_custom_rules) in fib_new_table()
87 alias = fib_new_table(net, RT_TABLE_MAIN); in fib_new_table()
95 rcu_assign_pointer(net->ipv4.fib_main, tb); in fib_new_table()
98 rcu_assign_pointer(net->ipv4.fib_default, tb); in fib_new_table()
105 hlist_add_head_rcu(&tb->tb_hlist, &net->ipv4.fib_table_hash[h]); in fib_new_table()
[all …]
Dip_input.c154 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 …]
Dxfrm4_policy.c20 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 …]
Dfib_notifier.c20 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
42 err = fib4_rules_dump(net, nb, extack); in fib4_dump()
46 return fib_notify(net, nb, extack); in fib4_dump()
56 int __net_init fib4_notifier_init(struct net *net) in fib4_notifier_init() argument
60 net->ipv4.fib_seq = 0; in fib4_notifier_init()
[all …]
/net/ipv6/netfilter/
Dip6table_nat.c18 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 …]
Dip6table_filter.c22 static int __net_init ip6table_filter_table_init(struct net *net);
38 return ip6t_do_table(skb, state, state->net->ipv6.ip6table_filter); in ip6table_filter_hook()
47 static int __net_init ip6table_filter_table_init(struct net *net) in ip6table_filter_table_init() argument
52 if (net->ipv6.ip6table_filter) in ip6table_filter_table_init()
62 err = ip6t_register_table(net, &packet_filter, repl, filter_ops, in ip6table_filter_table_init()
63 &net->ipv6.ip6table_filter); in ip6table_filter_table_init()
68 static int __net_init ip6table_filter_net_init(struct net *net) in ip6table_filter_net_init() argument
70 if (net == &init_net || !forward) in ip6table_filter_net_init()
71 return ip6table_filter_table_init(net); in ip6table_filter_net_init()
76 static void __net_exit ip6table_filter_net_pre_exit(struct net *net) in ip6table_filter_net_pre_exit() argument
[all …]
/net/ipv4/netfilter/
Diptable_nat.c16 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 …]
Diptable_filter.c22 static int __net_init iptable_filter_table_init(struct net *net);
37 return ipt_do_table(skb, state, state->net->ipv4.iptable_filter); in iptable_filter_hook()
46 static int __net_init iptable_filter_table_init(struct net *net) in iptable_filter_table_init() argument
51 if (net->ipv4.iptable_filter) in iptable_filter_table_init()
61 err = ipt_register_table(net, &packet_filter, repl, filter_ops, in iptable_filter_table_init()
62 &net->ipv4.iptable_filter); in iptable_filter_table_init()
67 static int __net_init iptable_filter_net_init(struct net *net) in iptable_filter_net_init() argument
69 if (net == &init_net || !forward) in iptable_filter_net_init()
70 return iptable_filter_table_init(net); in iptable_filter_net_init()
75 static void __net_exit iptable_filter_net_pre_exit(struct net *net) in iptable_filter_net_pre_exit() argument
[all …]
/net/xfrm/
Dxfrm_sysctl.c7 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 …]
/net/netfilter/
Dnf_log.c45 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/bridge/
Dbr_netfilter_hooks.c85 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 …]

12345678910>>...25