Home
last modified time | relevance | path

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

12345678910>>...74

/linux/include/net/
H A Dnet_namespace.h62 struct net { struct
212 extern struct net init_net; argument
215 struct net *copy_net_ns(u64 flags, struct user_namespace *user_ns,
216 struct net *old_net);
218 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
223 struct net *get_net_ns_by_fd(int fd);
229 static inline struct net *copy_net_ns(u64 flags, in copy_net_ns()
230 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
237 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument
251 static inline struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd()
[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 Dip6_fib.h91 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
96 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
97 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
101 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
103 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src()
106 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
108 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc()
111 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
113 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec()
419 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
[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 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 …]
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 …]
/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/drivers/net/thunderbolt/
H A Dmain.c242 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument
246 struct tb_xdomain *xd = net->xd; in tbnet_login_response()
252 memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN); in tbnet_login_response()
259 static int tbnet_login_request(struct tbnet *net, u8 sequence) in tbnet_login_request() argument
263 struct tb_xdomain *xd = net->xd; in tbnet_login_request()
268 atomic_inc_return(&net->command_id)); in tbnet_login_request()
271 request.transmit_path = net->local_transmit_path; in tbnet_login_request()
279 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument
283 struct tb_xdomain *xd = net->xd; in tbnet_logout_response()
288 atomic_inc_return(&net->command_id)); in tbnet_logout_response()
[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 *ne
111 ASSERT_RTNL_NET(net) global() argument
122 rcu_dereference_rtnl_net(net,p) global() argument
124 rtnl_net_dereference(net,p) global() argument
126 rcu_replace_pointer_rtnl_net(net,rp,p) global() argument
129 __rtnl_net_lock(struct net * net) __rtnl_net_lock() argument
130 __rtnl_net_unlock(struct net * net) __rtnl_net_unlock() argument
132 rtnl_net_lock(struct net * net) rtnl_net_lock() argument
137 rtnl_net_unlock(struct net * net) rtnl_net_unlock() argument
142 rtnl_net_trylock(struct net * net) rtnl_net_trylock() argument
147 rtnl_net_lock_killable(struct net * net) rtnl_net_lock_killable() argument
152 ASSERT_RTNL_NET(struct net * net) ASSERT_RTNL_NET() argument
161 rcu_dereference_rtnl_net(net,p) global() argument
163 rtnl_net_dereference(net,p) global() argument
165 rcu_replace_pointer_rtnl_net(net,rp,p) global() argument
229 rtnl_has_listeners(const struct net * net,u32 group) rtnl_has_listeners() argument
246 rtnl_notify_needed(const struct net * net,u16 nlflags,u32 group) rtnl_notify_needed() argument
[all...]
H A Dnetfilter.h84 struct net *net; member
85 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
174 struct net *net, in nf_hook_state_init() argument
175 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
182 p->net = net; in nf_hook_state_init()
206 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
207 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
208 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
210 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
234 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/drivers/net/ethernet/
H A DKconfig18 source "drivers/net/ethernet/3com/Kconfig"
19 source "drivers/net/ethernet/actions/Kconfig"
20 source "drivers/net/ethernet/adaptec/Kconfig"
21 source "drivers/net/ethernet/aeroflex/Kconfig"
22 source "drivers/net/ethernet/agere/Kconfig"
23 source "drivers/net/ethernet/airoha/Kconfig"
24 source "drivers/net/ethernet/alacritech/Kconfig"
25 source "drivers/net/ethernet/alibaba/Kconfig"
26 source "drivers/net/ethernet/allwinner/Kconfig"
27 source "drivers/net/ethernet/altera/Kconfig"
[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()
138 can_init_stats(net); in can_stat_update()
142 can_init_stats(net); in can_stat_update()
146 can_init_stats(net); in can_stat_update()
[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/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/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/tools/testing/selftests/net/netfilter/
H A Dnft_flowtable.sh27 log_netns=$(sysctl -n net.netfilter.nf_log_all_netns)
42 [ "$log_netns" -eq 0 ] && sysctl -q net.netfilter.nf_log_all_netns="$log_netns"
47 sysctl -q net.netfilter.nf_log_all_netns=1
55 ip -net "$nsr1" link set "$dev" up
56 ip -net "$nsr2" link set "$dev" up
59 ip -net "$nsr1" addr add 10.0.1.1/24 dev veth0
60 ip -net "$nsr1" addr add dead:1::1/64 dev veth0 nodad
62 ip -net "$nsr2" addr add 10.0.2.1/24 dev veth1
63 ip -net "$nsr2" addr add dead:2::1/64 dev veth1 nodad
102 if ! ip -net "$nsr1" link set veth0 mtu "$omtu"; then
[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,
80 struct net *net,
87 struct net *net,
94 struct net *net,
103 struct net *net,
110 struct net *net,
119 struct net *net,
[all …]
/linux/net/ipv6/
H A Dip6_fib.c44 struct net *net; member
57 static struct fib6_info *fib6_find_prefix(struct net *net,
60 static struct fib6_node *fib6_repair_tree(struct net *net,
63 static int fib6_walk(struct net *net, struct fib6_walker *w);
75 #define FOR_WALKERS(net, w) \ argument
76 list_for_each_entry(w, &(net)->ipv6.fib6_walkers, lh)
78 static void fib6_walker_link(struct net *net, struct fib6_walker *w) in fib6_walker_link() argument
80 write_lock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link()
81 list_add(&w->lh, &net->ipv6.fib6_walkers); in fib6_walker_link()
82 write_unlock_bh(&net->ipv6.fib6_walker_lock); in fib6_walker_link()
[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...]
/linux/net/ipv4/
H A Dfib_frontend.c53 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init() argument
66 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX]); in fib4_rules_init()
68 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]); in fib4_rules_init()
77 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() argument
84 tb = fib_get_table(net, id); in fib_new_table()
88 if (!check_net(net)) 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()
98 spin_lock(&net->ipv4.fib_table_hash_lock); in fib_new_table()
100 tb = fib_get_table(net, id); in fib_new_table()
[all …]
/linux/include/net/netfilter/
H A Dnf_synproxy.h30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument
32 return net_generic(net, synproxy_net_id); in synproxy_pernet()
52 void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb,
56 bool synproxy_recv_client_ack(struct net *net,
65 int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net);
66 void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net);
69 void synproxy_send_client_synack_ipv6(struct net *net,
74 bool synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb,
80 int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net);
81 void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net);
[all …]

12345678910>>...74