Home
last modified time | relevance | path

Searched defs:net (Results 1 – 25 of 81) sorted by relevance

1234

/include/net/
Dnet_namespace.h50 struct net { struct
51 refcount_t passive; /* To decided when the network argument
54 atomic_t count; /* To decided when the network argument
62 struct list_head list; /* list of network namespaces */ argument
64 struct list_head exit_list; /* Use only net_mutex */ argument
69 struct idr netns_ids; argument
73 struct proc_dir_entry *proc_net; argument
74 struct proc_dir_entry *proc_net_stat; argument
80 struct sock *rtnl; /* rtnetlink socket */ argument
93 struct list_head fib_notifier_ops; /* protected by net_mutex */ argument
[all …]
Dwext.h18 static inline int wext_handle_ioctl(struct net *net, struct iwreq *iwr, unsigned int cmd, in wext_handle_ioctl()
23 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl()
34 static inline int wext_proc_init(struct net *net) in wext_proc_init()
38 static inline void wext_proc_exit(struct net *net) in wext_proc_exit()
Dip.h210 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
211 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
212 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
213 #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
214 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument
215 #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, v… argument
216 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument
217 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument
218 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
219 #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
[all …]
Dicmp.h33 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
34 #define __ICMP_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
35 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument
36 #define ICMPMSGIN_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument
Dl3mdev.h61 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
117 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
206 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
225 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
230 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
236 struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6) in l3mdev_link_scope_lookup()
266 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match()
272 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow()
Dipv6.h116 #define IP6_REPLY_MARK(net, mark) \ argument
125 #define _DEVINC(net, statname, mod, idev, field) \ argument
134 #define _DEVINCATOMIC(net, statname, mod, idev, field) \ argument
143 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument
151 #define _DEVADD(net, statname, mod, idev, field, val) \ argument
159 #define _DEVUPD(net, statname, mod, idev, field, val) \ argument
169 #define IP6_INC_STATS(net, idev,field) \ argument
171 #define __IP6_INC_STATS(net, idev,field) \ argument
173 #define IP6_ADD_STATS(net, idev,field,val) \ argument
175 #define __IP6_ADD_STATS(net, idev,field,val) \ argument
[all …]
Droute.h123 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key()
134 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key()
139 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output()
151 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports()
166 static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4, in ip_route_output_gre()
294 struct net *net = sock_net(sk); in ip_route_connect() local
342 struct net *net = dev_net(dst->dev); in ip4_dst_hoplimit() local
Dip_fib.h181 #define FIB_RES_SADDR(net, res) \ argument
190 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
246 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
260 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table()
265 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup()
290 static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb) in fib4_rules_dump()
295 static inline unsigned int fib4_rules_seq_read(struct net *net) in fib4_rules_seq_read()
310 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup()
358 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users()
363 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users()
[all …]
Dudp.h84 struct net *net, unsigned int num) in udp_hashslot()
211 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port()
387 #define UDP_INC_STATS(net, field, is_udplite) do { \ argument
390 #define __UDP_INC_STATS(net, field, is_udplite) do { \ argument
394 #define __UDP6_INC_STATS(net, field, is_udplite) do { \ argument
398 #define UDP6_INC_STATS(net, field, __lite) do { \ argument
Dinet_hashtables.h191 static inline u32 inet_bhashfn(const struct net *net, const __u16 lport, in inet_bhashfn()
201 static inline u32 inet_lhashfn(const struct net *net, const unsigned short num) in inet_lhashfn()
232 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener()
302 inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, in inet_lookup_established()
311 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup()
332 static inline struct sock *inet_lookup(struct net *net, in inet_lookup()
Dgenetlink.h107 static inline void genl_info_net_set(struct genl_info *info, struct net *net) in genl_info_net_set()
255 struct net *net, struct sk_buff *skb, in genlmsg_multicast_netns()
299 static inline int genlmsg_unicast(struct net *net, struct sk_buff *skb, u32 portid) in genlmsg_unicast()
375 struct net *net, u32 portid, in genl_set_err()
385 struct net *net, unsigned int group) in genl_has_listeners()
Dip6_route.h77 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output()
99 static inline int ip6_route_get_saddr(struct net *net, struct rt6_info *rt, in ip6_route_get_saddr()
159 struct net *net; member
Ddst.h360 struct net *net) in __skb_tunnel_rx()
384 struct net *net) in skb_tunnel_rx()
460 static inline int dst_output(struct net *net, struct sock *sk, struct sk_buff *skb) in dst_output()
487 static inline struct dst_entry *xfrm_lookup(struct net *net, in xfrm_lookup()
497 xfrm_lookup_with_ifid(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup_with_ifid()
504 static inline struct dst_entry *xfrm_lookup_route(struct net *net, in xfrm_lookup_route()
/include/net/netfilter/
Dnf_conntrack_timestamp.h30 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local
41 static inline bool nf_ct_tstamp_enabled(struct net *net) in nf_ct_tstamp_enabled()
46 static inline void nf_ct_set_tstamp(struct net *net, bool enable) in nf_ct_set_tstamp()
58 static inline int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init()
63 static inline void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini()
Dnf_conntrack_ecache.h45 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
90 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
107 const struct net *net = nf_ct_net(ct); in nf_conntrack_event_report() local
118 const struct net *net = nf_ct_net(ct); in nf_conntrack_event() local
151 static inline void nf_conntrack_ecache_delayed_work(struct net *net) in nf_conntrack_ecache_delayed_work()
159 static inline void nf_conntrack_ecache_work(struct net *net) in nf_conntrack_ecache_work()
185 static inline int nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init()
190 static inline void nf_conntrack_ecache_pernet_fini(struct net *net) in nf_conntrack_ecache_pernet_fini()
203 static inline void nf_conntrack_ecache_delayed_work(struct net *net) in nf_conntrack_ecache_delayed_work()
207 static inline void nf_conntrack_ecache_work(struct net *net) in nf_conntrack_ecache_work()
Dnf_conntrack_labels.h29 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
51 static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; } in nf_connlabels_get()
52 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put()
Dnf_conntrack_acct.h35 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local
53 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled()
59 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct()
Dnf_conntrack.h326 #define NF_CT_STAT_INC(net, count) __this_cpu_inc((net)->ct.stat->count) argument
327 #define NF_CT_STAT_INC_ATOMIC(net, count) this_cpu_inc((net)->ct.stat->count) argument
328 #define NF_CT_STAT_ADD_ATOMIC(net, count, v) this_cpu_add((net)->ct.stat->count, (v)) argument
/include/linux/sunrpc/
Dstats.h47 static inline int rpc_proc_init(struct net *net) in rpc_proc_init()
52 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit()
73 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register()
74 static inline void rpc_proc_unregister(struct net *net, const char *p) {} in rpc_proc_unregister()
77 static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, in svc_proc_register()
79 static inline void svc_proc_unregister(struct net *net, const char *p) {} in svc_proc_unregister()
/include/linux/
Dnetfilter.h57 struct net *net; member
117 struct net *net, in nf_hook_state_init()
118 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init()
182 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook()
185 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook()
230 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
232 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in NF_HOOK_COND()
244 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, in NF_HOOK()
246 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in NF_HOOK()
352 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
[all …]
Dseq_file_net.h12 struct net *net; member
/include/net/sctp/
Dsctp.h226 #define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument
227 #define __SCTP_INC_STATS(net, field) __SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument
228 #define SCTP_DEC_STATS(net, field) SNMP_DEC_STATS((net)->sctp.sctp_statistics, field) argument
325 static inline void sctp_dbg_objcnt_init(struct net *net) { return; } in sctp_dbg_objcnt_init()
326 static inline void sctp_dbg_objcnt_exit(struct net *net) { return; } in sctp_dbg_objcnt_exit()
338 static inline int sctp_sysctl_net_register(struct net *net) { return 0; } in sctp_sysctl_net_register()
339 static inline void sctp_sysctl_net_unregister(struct net *net) { return; } in sctp_sysctl_net_unregister()
541 static inline int sctp_phashfn(struct net *net, __u16 lport) in sctp_phashfn()
547 static inline int sctp_ep_hashfn(struct net *net, __u16 lport) in sctp_ep_hashfn()
/include/net/netns/
Dhash.h7 static inline u32 net_hash_mix(const struct net *net) in net_hash_mix()
Dgeneric.h39 static inline void *net_generic(const struct net *net, unsigned int id) in net_generic()
/include/net/tc_act/
Dtc_connmark.h9 struct net *net; member

1234