Home
last modified time | relevance | path

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

12345678910>>...77

/linux/include/net/
H A Dnet_namespace.h15 #include <net/flow.h>
16 #include <net/netns/core.h>
17 #include <net/netns/mib.h>
18 #include <net/netns/unix.h>
19 #include <net/netns/packet.h>
20 #include <net/netns/ipv4.h>
21 #include <net/netns/ipv6.h>
22 #include <net/netns/nexthop.h>
23 #include <net/netns/ieee802154_6lowpan.h>
24 #include <net/netn
61 struct net { global() struct
65 passivenet global() argument
76 listnet global() argument
77 exit_listnet global() argument
78 fnhe_genidnet global() argument
94 netns_idsnet global() argument
99 notrefcnt_trackernet global() argument
102 proc_netnet global() argument
103 proc_net_statnet global() argument
109 rtnlnet global() argument
117 netdev_chainnet global() argument
124 loopback_devnet global() argument
129 corenet global() argument
130 mibnet global() argument
131 packetnet global() argument
133 unxnet global() argument
135 nexthopnet global() argument
136 ipv4net global() argument
138 ipv6net global() argument
141 ieee802154_lowpannet global() argument
144 sctpnet global() argument
147 nfnet global() argument
149 ctnet global() argument
152 nftnet global() argument
155 ftnet global() argument
161 gennet global() argument
164 bpfnet global() argument
168 xfrmnet global() argument
171 net_cookienet global() argument
174 ipvsnet global() argument
177 mplsnet global() argument
180 cannet global() argument
183 xdpnet global() argument
186 mctpnet global() argument
193 smcnet global() argument
204 rtnl_mutexnet global() argument
229 net_ns_get_ownership(const struct net * net,kuid_t * uid,kgid_t * gid) net_ns_get_ownership() argument
271 get_net(struct net * net) get_net() argument
277 maybe_get_net(struct net * net) maybe_get_net() argument
290 put_net(struct net * net) put_net() argument
302 check_net(const struct net * net) check_net() argument
312 get_net(struct net * net) get_net() argument
317 put_net(struct net * net) put_net() argument
321 maybe_get_net(struct net * net) maybe_get_net() argument
332 check_net(const struct net * net) check_net() argument
339 net_passive_dec(struct net * net) net_passive_dec() argument
345 net_passive_inc(struct net * net) net_passive_inc() argument
351 net_initialized(const struct net * net) net_initialized() argument
356 __netns_tracker_alloc(struct net * net,netns_tracker * tracker,bool refcounted,gfp_t gfp) __netns_tracker_alloc() argument
368 netns_tracker_alloc(struct net * net,netns_tracker * tracker,gfp_t gfp) netns_tracker_alloc() argument
374 __netns_tracker_free(struct net * net,netns_tracker * tracker,bool refcounted) __netns_tracker_free() argument
384 get_net_track(struct net * net,netns_tracker * tracker,gfp_t gfp) get_net_track() argument
392 put_net_track(struct net * net,netns_tracker * tracker) put_net_track() argument
400 struct net __rcu *net; global() member
404 write_pnet(possible_net_t * pnet,struct net * net) write_pnet() argument
515 register_net_sysctl(net,path,table) global() argument
524 register_net_sysctl_sz(struct net * net,const char * path,struct ctl_table * table,size_t table_size) register_net_sysctl_sz() argument
534 rt_genid_ipv4(const struct net * net) rt_genid_ipv4() argument
540 rt_genid_ipv6(const struct net * net) rt_genid_ipv6() argument
546 rt_genid_bump_ipv4(struct net * net) rt_genid_bump_ipv4() argument
552 rt_genid_bump_ipv6(struct net * net) rt_genid_bump_ipv6() argument
560 net_ieee802154_lowpan(struct net * net) net_ieee802154_lowpan() argument
567 rt_genid_bump_all(struct net * net) rt_genid_bump_all() argument
573 fnhe_genid(const struct net * net) fnhe_genid() argument
578 fnhe_genid_bump(struct net * net) fnhe_genid_bump() argument
[all...]
H A Dip_fib.h140 struct net *fib_net;
165 int __net_init fib4_semantics_init(struct net *net);
166 void __net_exit fib4_semantics_exit(struct net *net);
208 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
210 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
247 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
250 int __net_init fib4_notifier_init(struct net *net);
251 void __net_exit fib4_notifier_exit(struct net *net);
253 void fib_info_notify_update(struct net *net, struct nl_info *info);
254 int fib_notify(struct net *net, struct notifier_block *nb,
[all …]
H A Dl3mdev.h3 * include/net/l3mdev.h - L3 master device API
10 #include <net/dst.h>
11 #include <net/fib_rules.h>
21 typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d);
56 int l3mdev_ifindex_lookup_by_table_id(enum l3mdev_type l3type, struct net *net,
59 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
76 void l3mdev_update_flow(struct net *ne
90 l3mdev_master_ifindex_by_index(struct net * net,int ifindex) l3mdev_master_ifindex_by_index() argument
135 l3mdev_master_upper_ifindex_by_index(struct net * net,int ifindex) l3mdev_master_upper_ifindex_by_index() argument
157 netif_index_is_l3_master(struct net * net,int ifindex) netif_index_is_l3_master() argument
248 l3mdev_master_ifindex_by_index(struct net * net,int ifindex) l3mdev_master_ifindex_by_index() argument
254 l3mdev_master_upper_ifindex_by_index_rcu(struct net * net,int ifindex) l3mdev_master_upper_ifindex_by_index_rcu() argument
259 l3mdev_master_upper_ifindex_by_index(struct net * net,int ifindex) l3mdev_master_upper_ifindex_by_index() argument
278 l3mdev_fib_table_by_index(struct net * net,int ifindex) l3mdev_fib_table_by_index() argument
283 netif_index_is_l3_master(struct net * net,int ifindex) netif_index_is_l3_master() argument
289 l3mdev_link_scope_lookup(struct net * net,struct flowi6 * fl6) l3mdev_link_scope_lookup() argument
332 l3mdev_ifindex_lookup_by_table_id(enum l3mdev_type l3type,struct net * net,u32 table_id) l3mdev_ifindex_lookup_by_table_id() argument
339 l3mdev_fib_rule_match(struct net * net,struct flowi * fl,struct fib_lookup_arg * arg) l3mdev_fib_rule_match() argument
358 l3mdev_update_flow(struct net * net,struct flowi * fl) l3mdev_update_flow() argument
[all...]
/linux/net/tipc/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dbearer.h105 int (*send_msg)(struct net *net, struct sk_buff *buf,
108 int (*enable_media)(struct net *net, struct tipc_bearer *b,
188 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 …]
H A 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 …]
/linux/net/core/
H A Dnet_namespace.c49 struct net init_net;
83 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument
89 old_ng = rcu_dereference_protected(net->gen, in net_assign_generic()
115 rcu_assign_pointer(net->gen, ng); in net_assign_generic()
120 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()
142 ng = rcu_dereference_protected(net->gen, in ops_init()
157 struct net *net; in ops_pre_exit_list() local
160 list_for_each_entry(net, net_exit_list, exit_list) in ops_pre_exit_list()
[all …]
/linux/include/linux/
H A Drtnetlink.h12 extern int rtnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, u32 group, int echo);
14 static inline int rtnetlink_maybe_send(struct sk_buff *skb, struct net *net, in rtnetlink_maybe_send() argument
17 return !skb ? 0 : rtnetlink_send(skb, net, pid, group, echo); in rtnetlink_maybe_send()
20 extern int rtnl_unicast(struct sk_buff *skb, struct net *net, u32 pid);
21 extern void rtnl_notify(struct sk_buff *skb, struct net *net, u32 pid,
23 extern void rtnl_set_sk_err(struct net *net, u32 group, int error);
101 void __rtnl_net_lock(struct net *net);
102 void __rtnl_net_unlock(struct net *net);
103 void rtnl_net_lock(struct net *net);
104 void rtnl_net_unlock(struct net *net);
[all …]
H A Dnetfilter_ipv6.h43 int (*chk_addr)(struct net *net, const struct in6_addr *addr,
45 int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb);
46 int (*dev_get_saddr)(struct net *net, const struct net_device *dev,
49 int (*route)(struct net *net, struct dst_entry **dst, struct flowi *fl,
57 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
58 int (*output)(struct net *, struct sock *, struct sk_buff *));
61 int (*br_fragment)(struct net *net, struct sock *sk,
64 int (*output)(struct net *, struct sock *sk,
79 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument
88 return v6_ops->chk_addr(net, addr, dev, strict); in nf_ipv6_chk_addr()
[all …]
H A Dnetfilter.h84 struct net *net; member
85 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
167 struct net *net, in nf_hook_state_init() argument
168 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
175 p->net = net; in nf_hook_state_init()
199 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
200 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
201 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
203 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
227 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument
[all …]
/linux/fs/afs/
H A Dmain.c65 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init()
68 struct afs_net *net = afs_net(net_ns); in afs_net_init() local
71 net->net = net_ns; in afs_net_init()
72 net->live = true; in afs_net_init()
73 generate_random_uuid((unsigned char *)&net->uuid); in afs_net_init()
75 INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation); in afs_net_init()
76 INIT_WORK(&net->rx_oob_work, afs_process_oob_queue); in afs_net_init()
77 mutex_init(&net->socket_mutex); in afs_net_init()
79 net->cells = RB_ROOT; in afs_net_init()
80 idr_init(&net->cells_dyn_ino); in afs_net_init()
[all …]
/linux/kernel/bpf/
H A Dnet_namespace.c20 struct net *net; member
55 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() argument
60 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL, in netns_bpf_run_array_detach()
65 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() argument
71 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
79 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() argument
84 list_for_each(pos, &net->bpf.links[type]) in link_count()
89 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array() argument
95 list_for_each_entry(pos, &net->bpf.links[type], node) { in fill_prog_array()
107 struct net *net; in bpf_netns_link_release() local
[all …]
/linux/net/can/
H A 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()
117 struct net *net = timer_container_of(net, t, can.stattimer); in can_stat_update() local
118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
130 can_init_stats(net); in can_stat_update()
134 can_init_stats(net); in can_stat_update()
217 struct net *net = m->private; can_stats_proc_show() local
282 struct net *net = m->private; can_reset_stats_proc_show() local
319 struct net *net = m->private; can_rcvlist_proc_show() local
373 struct net *net = m->private; can_rcvlist_sff_proc_show() local
406 struct net *net = m->private; can_rcvlist_eff_proc_show() local
438 can_init_proc(struct net * net) can_init_proc() argument
476 can_remove_proc(struct net * net) can_remove_proc() argument
[all...]
/linux/drivers/net/usb/
H A Dsmsc75xx.c90 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg()
122 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
164 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
187 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
199 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
205 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
211 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
234 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
241 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
253 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
[all …]
/linux/fs/proc/
H A Dproc_net.c29 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET()
34 static struct net *get_proc_net(const struct inode *inode) in get_proc_net()
43 struct net *net; in seq_open_net() local
50 net = get_proc_net(inode); in seq_open_net()
51 if (!net) in seq_open_net()
56 put_net(net); in seq_open_net()
60 p->net = net; in seq_open_net()
61 netns_tracker_alloc(net, &p->ns_tracker, GFP_KERNEL); in seq_open_net()
71 put_net_track(priv->net, &priv->ns_tracker); in seq_file_net_put_net()
99 p->net = get_net_track(current->nsproxy->net_ns, &p->ns_tracker, in bpf_iter_init_seq_net()
[all …]
/linux/include/net/netfilter/
H A Dnf_conntrack_l4proto.h14 #include <net/netlink.h>
15 #include <net/netfilter/nf_conntrack.h>
16 #include <net/netns/generic.h>
51 struct net *net, void *data);
66 struct net *net,
71 struct net *net,
131 void nf_conntrack_generic_init_net(struct net *ne
180 nf_generic_pernet(struct net * net) nf_generic_pernet() argument
185 nf_tcp_pernet(struct net * net) nf_tcp_pernet() argument
190 nf_udp_pernet(struct net * net) nf_udp_pernet() argument
195 nf_icmp_pernet(struct net * net) nf_icmp_pernet() argument
200 nf_icmpv6_pernet(struct net * net) nf_icmpv6_pernet() argument
221 nf_sctp_pernet(struct net * net) nf_sctp_pernet() argument
228 nf_gre_pernet(struct net * net) nf_gre_pernet() argument
[all...]
/linux/net/ipv6/
H A Dip6_fib.c21 #include <linux/net.h>
29 #include <net/ip.h>
30 #include <net/ipv6.h>
31 #include <net/ndisc.h>
32 #include <net/addrconf.h>
33 #include <net/lwtunnel.h>
34 #include <net/fib_notifier.h>
36 #include <net/ip_fib.h>
37 #include <net/ip6_fib.h>
38 #include <net/ip6_rout
44 struct net *net; global() member
75 FOR_WALKERS(net,w) global() argument
78 fib6_walker_link(struct net * net,struct fib6_walker * w) fib6_walker_link() argument
85 fib6_walker_unlink(struct net * net,struct fib6_walker * w) fib6_walker_unlink() argument
92 fib6_new_sernum(struct net * net) fib6_new_sernum() argument
107 fib6_update_sernum(struct net * net,struct fib6_info * f6i) fib6_update_sernum() argument
184 node_alloc(struct net * net) node_alloc() argument
195 node_free_immediate(struct net * net,struct fib6_node * fn) node_free_immediate() argument
201 node_free(struct net * net,struct fib6_node * fn) node_free() argument
213 fib6_link_table(struct net * net,struct fib6_table * tb) fib6_link_table() argument
233 fib6_alloc_table(struct net * net,u32 id) fib6_alloc_table() argument
250 fib6_new_table(struct net * net,u32 id) fib6_new_table() argument
282 fib6_get_table(struct net * net,u32 id) fib6_get_table() argument
303 fib6_tables_init(struct net * net) fib6_tables_init() argument
310 fib6_new_table(struct net * net,u32 id) fib6_new_table() argument
315 fib6_get_table(struct net * net,u32 id) fib6_get_table() argument
320 fib6_rule_lookup(struct net * net,struct flowi6 * fl6,const struct sk_buff * skb,int flags,pol_lookup_t lookup) fib6_rule_lookup() argument
339 fib6_lookup(struct net * net,int oif,struct flowi6 * fl6,struct fib6_result * res,int flags) fib6_lookup() argument
346 fib6_tables_init(struct net * net) fib6_tables_init() argument
353 fib6_tables_seq_read(const struct net * net) fib6_tables_seq_read() argument
398 call_fib6_entry_notifiers(struct net * net,enum fib_event_type event_type,struct fib6_info * rt,struct netlink_ext_ack * extack) call_fib6_entry_notifiers() argument
412 call_fib6_multipath_entry_notifiers(struct net * net,enum fib_event_type event_type,struct fib6_info * rt,unsigned int nsiblings,struct netlink_ext_ack * extack) call_fib6_multipath_entry_notifiers() argument
428 call_fib6_entry_notifiers_replace(struct net * net,struct fib6_info * rt) call_fib6_entry_notifiers_replace() argument
440 struct net *net; global() member
476 fib6_table_dump(struct net * net,struct fib6_table * tb,struct fib6_walker * w) fib6_table_dump() argument
489 fib6_tables_dump(struct net * net,struct notifier_block * nb,struct netlink_ext_ack * extack) fib6_tables_dump() argument
561 struct net *net = sock_net(cb->skb->sk); fib6_dump_end() local
585 struct net *net = sock_net(skb->sk); fib6_dump_table() local
636 struct net *net = sock_net(skb->sk); inet6_dump_fib() local
754 fib6_add_1(struct net * net,struct fib6_table * table,struct fib6_node * root,struct in6_addr * addr,int plen,int offset,int allow_create,int replace_required,struct netlink_ext_ack * extack) fib6_add_1() argument
1032 fib6_purge_rt(struct fib6_info * rt,struct fib6_node * fn,struct net * net) fib6_purge_rt() argument
1373 fib6_start_gc(struct net * net,struct fib6_info * rt) fib6_start_gc() argument
1381 fib6_force_start_gc(struct net * net) fib6_force_start_gc() argument
1403 fib6_update_sernum_upto_root(struct net * net,struct fib6_info * rt) fib6_update_sernum_upto_root() argument
1409 fib6_update_sernum_stub(struct net * net,struct fib6_info * f6i) fib6_update_sernum_stub() argument
1807 fib6_find_prefix(struct net * net,struct fib6_table * table,struct fib6_node * fn) fib6_find_prefix() argument
1839 fib6_repair_tree(struct net * net,struct fib6_table * table,struct fib6_node * fn) fib6_repair_tree() argument
1974 struct net *net = info->nl_net; fib6_del_route() local
2065 struct net *net = info->nl_net; fib6_del() local
2216 fib6_walk(struct net * net,struct fib6_walker * w) fib6_walk() argument
2287 fib6_clean_tree(struct net * net,struct fib6_node * root,int (* func)(struct fib6_info *,void * arg),int sernum,void * arg,bool skip_notify) fib6_clean_tree() argument
2307 __fib6_clean_all(struct net * net,int (* func)(struct fib6_info *,void *),int sernum,void * arg,bool skip_notify) __fib6_clean_all() argument
2328 fib6_clean_all(struct net * net,int (* func)(struct fib6_info *,void *),void * arg) fib6_clean_all() argument
2334 fib6_clean_all_skip_notify(struct net * net,int (* func)(struct fib6_info *,void *),void * arg) fib6_clean_all_skip_notify() argument
2341 fib6_flush_trees(struct net * net) fib6_flush_trees() argument
2378 fib6_gc_table(struct net * net,struct fib6_table * tb6,struct fib6_gc_args * gc_args) fib6_gc_table() argument
2394 fib6_gc_all(struct net * net,struct fib6_gc_args * gc_args) fib6_gc_all() argument
2414 fib6_run_gc(unsigned long expires,struct net * net,bool force) fib6_run_gc() argument
2449 fib6_net_init(struct net * net) fib6_net_init() argument
2521 fib6_net_exit(struct net * net) fib6_net_exit() argument
2642 ipv6_route_seq_setup_walk(struct ipv6_route_iter * iter,struct net * net) ipv6_route_seq_setup_walk() argument
2656 ipv6_route_seq_next_table(struct fib6_table * tbl,struct net * net) ipv6_route_seq_next_table() argument
2693 struct net *net = seq_file_net(seq); ipv6_route_seq_next() local
2728 struct net *net = seq_file_net(seq); ipv6_route_seq_start() local
2754 struct net *net = seq_file_net(seq); ipv6_route_native_seq_stop() local
[all...]
/linux/net/sctp/
H A Dsm_statefuns.c53 struct net *net,
62 struct net *net,
65 static void sctp_send_stale_cookie_err(struct net *net,
72 struct net *net,
79 struct net *net,
86 struct net *net,
93 struct net *net,
102 struct net *net,
109 struct net *net,
118 struct net *net,
[all …]
H A Dprotocol.c105 static void sctp_get_local_addr_list(struct net *net) in sctp_get_local_addr_list() argument
112 for_each_netdev_rcu(net, dev) { in sctp_get_local_addr_list()
115 af->copy_addrlist(&net->sctp.local_addr_list, dev); in sctp_get_local_addr_list()
122 static void sctp_free_local_addr_list(struct net *net) in sctp_free_local_addr_list() argument
127 list_for_each_safe(pos, temp, &net->sctp.local_addr_list) { in sctp_free_local_addr_list()
135 int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, in sctp_copy_local_addr_list() argument
143 list_for_each_entry_rcu(addr, &net->sctp.local_addr_list, list) { in sctp_copy_local_addr_list()
146 if (!sctp_in_scope(net, &addr->a, scope)) in sctp_copy_local_addr_list()
355 struct net *net = sock_net(sk); in sctp_v4_available() local
359 tb_id = l3mdev_fib_table_by_index(net, sk->sk_bound_dev_if) ?: tb_id; in sctp_v4_available()
[all …]
/linux/tools/testing/selftests/net/
H A Dbig_tcp.sh31 ip -net $ROUTER_NS link add link1 type veth peer name link0 netns $CLIENT_NS
32 ip -net $ROUTER_NS link add link2 type veth peer name link3 netns $SERVER_NS
34 ip -net $CLIENT_NS link set link0 up
35 ip -net $CLIENT_NS link set link0 mtu 1442
36 ip -net $CLIENT_NS addr add $CLIENT_IP4/24 dev link0
37 ip -net $CLIENT_NS addr add $CLIENT_IP6/64 dev link0 nodad
38 ip -net $CLIENT_NS route add $SERVER_IP4 dev link0 via $CLIENT_GW4
39 ip -net $CLIENT_NS route add $SERVER_IP6 dev link0 via $CLIENT_GW6
40 ip -net $CLIENT_NS link set dev link0 \
42 ip -net $CLIENT_NS link set dev link0 \
[all …]
/linux/net/xfrm/
H A 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()
43 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 …]
/linux/drivers/usb/gadget/function/
H A Du_ether.c62 struct net_device *net; member
110 static void eth_get_drvinfo(struct net_device *net, struct ethtool_drvinfo *p) in eth_get_drvinfo() argument
112 struct eth_dev *dev = netdev_priv(net); in eth_get_drvinfo()
177 size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; in rx_submit()
189 skb = __netdev_alloc_skb(dev->net, size + NET_IP_ALIGN, gfp_flags); in rx_submit()
257 dev->net->stats.rx_errors++; in rx_complete()
258 dev->net->stats.rx_length_errors++; in rx_complete()
263 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete()
264 dev->net->stats.rx_packets++; in rx_complete()
265 dev->net->stats.rx_bytes += skb2->len; in rx_complete()
[all …]
/linux/tools/testing/selftests/net/packetdrill/
H A Ddefaults.sh10 sysctl -q net.ipv4.tcp_rmem="4096 540000 $((15*1024*1024))"
11 sysctl -q net.ipv4.tcp_wmem="4096 $((256*1024)) 4194304"
14 sysctl -q net.ipv4.tcp_timestamps=1
17 sysctl -q net.ipv4.tcp_syn_retries=5
18 sysctl -q net.ipv4.tcp_synack_retries=5
21 sysctl -q net.ipv4.tcp_frto=2
24 sysctl -q net.ipv4.tcp_sack=1
27 sysctl -q net.ipv4.tcp_dsack=1
30 sysctl -q net.ipv4.tcp_fack=0
33 sysctl -q net
[all...]

12345678910>>...77