Home
last modified time | relevance | path

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

12345678910>>...73

/linux-6.6.21/include/net/
Dnet_namespace.h61 struct net { struct
198 extern struct net init_net; argument
201 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
202 struct net *old_net);
204 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
209 struct net *get_net_ns_by_fd(int fd);
213 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns()
214 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
221 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument
235 static inline struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd()
[all …]
Dip6_fib.h97 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
102 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
103 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
107 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
109 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src()
112 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
114 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc()
117 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
119 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec()
410 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
[all …]
Dip_fib.h138 struct net *fib_net;
203 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
205 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
242 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
245 int __net_init fib4_notifier_init(struct net *net);
246 void __net_exit fib4_notifier_exit(struct net *net);
248 void fib_info_notify_update(struct net *net, struct nl_info *info);
249 int fib_notify(struct net *net, struct notifier_block *nb,
275 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
277 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
[all …]
Dl3mdev.h21 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,
62 void l3mdev_update_flow(struct net *net, struct flowi *fl);
76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
84 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index()
119 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
124 ifindex = l3mdev_master_upper_ifindex_by_index_rcu(net, ifindex); in l3mdev_master_upper_ifindex_by_index()
131 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
[all …]
/linux-6.6.21/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 …]
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 …]
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-6.6.21/drivers/net/thunderbolt/
Dmain.c240 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument
244 struct tb_xdomain *xd = net->xd; in tbnet_login_response()
250 memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN); in tbnet_login_response()
257 static int tbnet_login_request(struct tbnet *net, u8 sequence) in tbnet_login_request() argument
261 struct tb_xdomain *xd = net->xd; in tbnet_login_request()
266 atomic_inc_return(&net->command_id)); in tbnet_login_request()
269 request.transmit_path = net->local_transmit_path; in tbnet_login_request()
277 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument
281 struct tb_xdomain *xd = net->xd; in tbnet_logout_response()
286 atomic_inc_return(&net->command_id)); in tbnet_logout_response()
[all …]
/linux-6.6.21/net/core/
Dnet_namespace.c48 struct net init_net;
82 static int net_assign_generic(struct net *net, unsigned int id, void *data) in net_assign_generic() argument
88 old_ng = rcu_dereference_protected(net->gen, in net_assign_generic()
114 rcu_assign_pointer(net->gen, ng); in net_assign_generic()
119 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init() argument
130 err = net_assign_generic(net, *ops->id, data); in ops_init()
136 err = ops->init(net); in ops_init()
141 ng = rcu_dereference_protected(net->gen, in ops_init()
156 struct net *net; in ops_pre_exit_list() local
159 list_for_each_entry(net, net_exit_list, exit_list) in ops_pre_exit_list()
[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 …]
/linux-6.6.21/fs/afs/
Dmain.c67 static int __net_init afs_net_init(struct net *net_ns) in afs_net_init()
70 struct afs_net *net = afs_net(net_ns); in afs_net_init() local
73 net->net = net_ns; in afs_net_init()
74 net->live = true; in afs_net_init()
75 generate_random_uuid((unsigned char *)&net->uuid); in afs_net_init()
77 INIT_WORK(&net->charge_preallocation_work, afs_charge_preallocation); in afs_net_init()
78 mutex_init(&net->socket_mutex); in afs_net_init()
80 net->cells = RB_ROOT; in afs_net_init()
81 init_rwsem(&net->cells_lock); in afs_net_init()
82 INIT_WORK(&net->cells_manager, afs_manage_cells); in afs_net_init()
[all …]
/linux-6.6.21/kernel/bpf/
Dnet_namespace.c22 struct net *net; member
56 static void netns_bpf_run_array_detach(struct net *net, in netns_bpf_run_array_detach() argument
61 run_array = rcu_replace_pointer(net->bpf.run_array[type], NULL, in netns_bpf_run_array_detach()
66 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() argument
72 list_for_each_entry(pos, &net->bpf.links[type], node) { in link_index()
80 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() argument
85 list_for_each(pos, &net->bpf.links[type]) in link_count()
90 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array() argument
96 list_for_each_entry(pos, &net->bpf.links[type], node) { in fill_prog_array()
108 struct net *net; in bpf_netns_link_release() local
[all …]
/linux-6.6.21/drivers/net/ethernet/
DKconfig21 source "drivers/net/ethernet/3com/Kconfig"
22 source "drivers/net/ethernet/actions/Kconfig"
23 source "drivers/net/ethernet/adaptec/Kconfig"
24 source "drivers/net/ethernet/aeroflex/Kconfig"
25 source "drivers/net/ethernet/agere/Kconfig"
26 source "drivers/net/ethernet/alacritech/Kconfig"
27 source "drivers/net/ethernet/allwinner/Kconfig"
28 source "drivers/net/ethernet/alteon/Kconfig"
29 source "drivers/net/ethernet/altera/Kconfig"
30 source "drivers/net/ethernet/amazon/Kconfig"
[all …]
/linux-6.6.21/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()
117 struct net *net = from_timer(net, t, can.stattimer); in can_stat_update() local
118 struct can_pkg_stats *pkg_stats = net->can.pkg_stats; in can_stat_update()
123 can_init_stats(net); 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()
[all …]
/linux-6.6.21/include/net/netfilter/
Dnf_conntrack_l4proto.h51 struct net *net, void *data);
66 struct net *net,
71 struct net *net,
136 void nf_conntrack_generic_init_net(struct net *net);
137 void nf_conntrack_tcp_init_net(struct net *net);
138 void nf_conntrack_udp_init_net(struct net *net);
139 void nf_conntrack_gre_init_net(struct net *net);
140 void nf_conntrack_dccp_init_net(struct net *net);
141 void nf_conntrack_sctp_init_net(struct net *net);
142 void nf_conntrack_icmp_init_net(struct net *net);
[all …]
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 …]
/linux-6.6.21/net/mptcp/
Dctrl.c38 static struct mptcp_pernet *mptcp_get_pernet(const struct net *net) in mptcp_get_pernet() argument
40 return net_generic(net, mptcp_pernet_id); in mptcp_get_pernet()
43 int mptcp_is_enabled(const struct net *net) in mptcp_is_enabled() argument
45 return mptcp_get_pernet(net)->mptcp_enabled; in mptcp_is_enabled()
48 unsigned int mptcp_get_add_addr_timeout(const struct net *net) in mptcp_get_add_addr_timeout() argument
50 return mptcp_get_pernet(net)->add_addr_timeout; in mptcp_get_add_addr_timeout()
53 int mptcp_is_checksum_enabled(const struct net *net) in mptcp_is_checksum_enabled() argument
55 return mptcp_get_pernet(net)->checksum_enabled; in mptcp_is_checksum_enabled()
58 int mptcp_allow_join_id0(const struct net *net) in mptcp_allow_join_id0() argument
60 return mptcp_get_pernet(net)->allow_join_initial_addr_port; in mptcp_allow_join_id0()
[all …]
/linux-6.6.21/fs/proc/
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-6.6.21/drivers/net/usb/
Dsmsc75xx.c96 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg()
128 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
170 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
193 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
205 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
211 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
217 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
240 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
247 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
259 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
[all …]
/linux-6.6.21/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
49 __xfrm_sysctl_init(net); in xfrm_sysctl_init()
54 table[0].data = &net->xfrm.sysctl_aevent_etime; in xfrm_sysctl_init()
55 table[1].data = &net->xfrm.sysctl_aevent_rseqth; in xfrm_sysctl_init()
56 table[2].data = &net->xfrm.sysctl_larval_drop; in xfrm_sysctl_init()
[all …]
/linux-6.6.21/include/linux/
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 …]
/linux-6.6.21/tools/testing/selftests/net/
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-6.6.21/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,
91 struct net *net,
100 struct net *net,
107 struct net *net,
116 struct net *net,
[all …]

12345678910>>...73