Home
last modified time | relevance | path

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

12345678910>>...73

/Linux-v5.4/include/net/
Dnet_namespace.h54 struct net { struct
189 extern struct net init_net; argument
192 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
193 struct net *old_net);
195 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
201 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns()
202 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
209 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument
222 struct net *get_net_ns_by_pid(pid_t pid);
223 struct net *get_net_ns_by_fd(int fd);
[all …]
Dip_fib.h135 struct net *fib_net;
199 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
201 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
222 int call_fib4_notifier(struct notifier_block *nb, struct net *net,
225 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
228 int __net_init fib4_notifier_init(struct net *net);
229 void __net_exit fib4_notifier_exit(struct net *net);
231 void fib_info_notify_update(struct net *net, struct nl_info *info);
232 void fib_notify(struct net *net, struct notifier_block *nb);
258 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
[all …]
/Linux-v5.4/net/tipc/
Dbcast.h80 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 …]
Dbcast.c76 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 …]
Dnode.h72 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 …]
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.h104 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 …]
Dnet.c109 struct net *net; member
113 static void tipc_net_finalize(struct net *net, u32 addr);
115 int tipc_net_init(struct net *net, u8 *node_id, u32 addr) in tipc_net_init() argument
117 if (tipc_own_id(net)) { in tipc_net_init()
124 tipc_set_node_id(net, node_id); in tipc_net_init()
126 tipc_net_finalize(net, addr); in tipc_net_init()
130 static void tipc_net_finalize(struct net *net, u32 addr) in tipc_net_finalize() argument
132 struct tipc_net *tn = tipc_net(net); in tipc_net_finalize()
136 tipc_set_node_addr(net, addr); in tipc_net_finalize()
137 tipc_named_reinit(net); in tipc_net_finalize()
[all …]
/Linux-v5.4/drivers/net/
Dthunderbolt.c231 static int tbnet_login_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_login_response() argument
235 struct tb_xdomain *xd = net->xd; in tbnet_login_response()
241 memcpy(reply.receiver_mac, net->dev->dev_addr, ETH_ALEN); in tbnet_login_response()
248 static int tbnet_login_request(struct tbnet *net, u8 sequence) in tbnet_login_request() argument
252 struct tb_xdomain *xd = net->xd; in tbnet_login_request()
257 atomic_inc_return(&net->command_id)); in tbnet_login_request()
268 static int tbnet_logout_response(struct tbnet *net, u64 route, u8 sequence, in tbnet_logout_response() argument
272 struct tb_xdomain *xd = net->xd; in tbnet_logout_response()
277 atomic_inc_return(&net->command_id)); in tbnet_logout_response()
282 static int tbnet_logout_request(struct tbnet *net) in tbnet_logout_request() argument
[all …]
/Linux-v5.4/Documentation/driver-api/80211/
Dcfg80211.rst5 .. kernel-doc:: include/net/cfg80211.h
11 .. kernel-doc:: include/net/cfg80211.h
14 .. kernel-doc:: include/net/cfg80211.h
17 .. kernel-doc:: include/net/cfg80211.h
20 .. kernel-doc:: include/net/cfg80211.h
23 .. kernel-doc:: include/net/cfg80211.h
26 .. kernel-doc:: include/net/cfg80211.h
29 .. kernel-doc:: include/net/cfg80211.h
32 .. kernel-doc:: include/net/cfg80211.h
35 .. kernel-doc:: include/net/cfg80211.h
[all …]
/Linux-v5.4/net/core/
Dnet_namespace.c46 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 …]
Dfib_notifier.c19 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 …]
/Linux-v5.4/include/net/netfilter/
Dnf_conntrack_l4proto.h50 struct net *net, void *data);
65 struct net *net,
70 struct net *net,
135 void nf_conntrack_generic_init_net(struct net *net);
136 void nf_conntrack_tcp_init_net(struct net *net);
137 void nf_conntrack_udp_init_net(struct net *net);
138 void nf_conntrack_gre_init_net(struct net *net);
139 void nf_conntrack_dccp_init_net(struct net *net);
140 void nf_conntrack_sctp_init_net(struct net *net);
141 void nf_conntrack_icmp_init_net(struct net *net);
[all …]
Dnf_conntrack_ecache.h45 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
48 if (!ctmask && !expmask && net->ct.sysctl_events) { in nf_ct_ecache_ext_add()
79 int nf_conntrack_register_notifier(struct net *net,
81 void nf_conntrack_unregister_notifier(struct net *net,
108 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
111 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_cache()
127 const struct net *net = nf_ct_net(ct); in nf_conntrack_event_report() local
129 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_report()
142 const struct net *net = nf_ct_net(ct); in nf_conntrack_event() local
144 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event()
[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-v5.4/net/can/
Dproc.c80 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 …]
/Linux-v5.4/drivers/net/ethernet/
DKconfig21 source "drivers/net/ethernet/3com/Kconfig"
22 source "drivers/net/ethernet/adaptec/Kconfig"
23 source "drivers/net/ethernet/aeroflex/Kconfig"
24 source "drivers/net/ethernet/agere/Kconfig"
25 source "drivers/net/ethernet/alacritech/Kconfig"
26 source "drivers/net/ethernet/allwinner/Kconfig"
27 source "drivers/net/ethernet/alteon/Kconfig"
28 source "drivers/net/ethernet/altera/Kconfig"
29 source "drivers/net/ethernet/amazon/Kconfig"
30 source "drivers/net/ethernet/amd/Kconfig"
[all …]
/Linux-v5.4/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 seqlock_init(&net->cells_lock); in afs_net_init()
82 INIT_WORK(&net->cells_manager, afs_manage_cells); in afs_net_init()
[all …]
/Linux-v5.4/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 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_defrag)(struct net *net, struct sk_buff *skb, u32 user);
62 int (*br_fragment)(struct net *net, struct sock *sk,
65 int (*output)(struct net *, struct sock *sk,
80 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument
[all …]
/Linux-v5.4/net/ipv4/
Dfib_notifier.c12 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 …]
/Linux-v5.4/drivers/net/usb/
Dsmsc75xx.c94 netdev_warn(dev->net, "Failed to read reg index 0x%08x: %d\n", in __smsc75xx_read_reg()
126 netdev_warn(dev->net, "Failed to write reg index 0x%08x: %d\n", in __smsc75xx_write_reg()
168 netdev_warn(dev->net, "Error reading MII_ACCESS\n"); in __smsc75xx_phy_wait_not_busy()
191 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_read\n"); in __smsc75xx_mdio_read()
203 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_read()
209 netdev_warn(dev->net, "Timed out reading MII reg %02X\n", idx); in __smsc75xx_mdio_read()
215 netdev_warn(dev->net, "Error reading MII_DATA\n"); in __smsc75xx_mdio_read()
238 netdev_warn(dev->net, "MII is busy in smsc75xx_mdio_write\n"); in __smsc75xx_mdio_write()
245 netdev_warn(dev->net, "Error writing MII_DATA\n"); in __smsc75xx_mdio_write()
257 netdev_warn(dev->net, "Error writing MII_ACCESS\n"); in __smsc75xx_mdio_write()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/net/ipv6/
Dfib6_notifier.c10 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 …]
/Linux-v5.4/fs/proc/
Dproc_net.c32 static inline struct net *PDE_NET(struct proc_dir_entry *pde) in PDE_NET()
37 static struct net *get_proc_net(const struct inode *inode) in get_proc_net()
62 struct net *net; in seq_open_net() local
69 net = get_proc_net(inode); in seq_open_net()
70 if (!net) in seq_open_net()
75 put_net(net); in seq_open_net()
79 p->net = net; in seq_open_net()
166 struct net *net; in single_open_net() local
169 net = get_proc_net(inode); in single_open_net()
170 if (!net) in single_open_net()
[all …]
/Linux-v5.4/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 …]

12345678910>>...73