Home
last modified time | relevance | path

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

123

/include/net/
Dnet_namespace.h47 struct net { struct
48 atomic_t passive; /* To decided when the network argument
51 atomic_t count; /* To decided when the network argument
58 struct list_head list; /* list of network namespaces */ argument
60 struct list_head exit_list; /* Use only net_mutex */ argument
65 struct idr netns_ids; argument
69 struct proc_dir_entry *proc_net; argument
70 struct proc_dir_entry *proc_net_stat; argument
76 struct sock *rtnl; /* rtnetlink socket */ argument
90 struct net_device *loopback_dev; /* The loopback */ argument
[all …]
Dwext.h17 static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl()
22 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl()
33 static inline int wext_proc_init(struct net *net) in wext_proc_init()
37 static inline void wext_proc_exit(struct net *net) in wext_proc_exit()
Dicmp.h32 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
33 #define __ICMP_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
34 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument
35 #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()
205 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index()
224 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index()
229 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master()
235 struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6) in l3mdev_link_scope_lookup()
265 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match()
271 void l3mdev_update_flow(struct net *net, struct flowi *fl) in l3mdev_update_flow()
Dip.h199 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
200 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
201 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
202 #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
203 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument
204 #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, v… argument
205 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument
206 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument
207 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
208 #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument
[all …]
Dipv6.h115 #define IP6_REPLY_MARK(net, mark) \ argument
124 #define _DEVINC(net, statname, mod, idev, field) \ argument
133 #define _DEVINCATOMIC(net, statname, mod, idev, field) \ argument
142 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument
150 #define _DEVADD(net, statname, mod, idev, field, val) \ argument
158 #define _DEVUPD(net, statname, mod, idev, field, val) \ argument
168 #define IP6_INC_STATS(net, idev,field) \ argument
170 #define __IP6_INC_STATS(net, idev,field) \ argument
172 #define IP6_ADD_STATS(net, idev,field,val) \ argument
174 #define __IP6_ADD_STATS(net, idev,field,val) \ argument
[all …]
Dudp.h84 struct net *net, unsigned int num) in udp_hashslot()
212 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port()
294 #define UDP_INC_STATS(net, field, is_udplite) do { \ argument
297 #define __UDP_INC_STATS(net, field, is_udplite) do { \ argument
301 #define __UDP6_INC_STATS(net, field, is_udplite) do { \ argument
305 #define UDP6_INC_STATS(net, field, __lite) do { \ argument
Droute.h119 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key()
130 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key()
135 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output()
147 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports()
162 static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4, in ip_route_output_gre()
282 struct net *net = sock_net(sk); in ip_route_connect() local
330 struct net *net = dev_net(dst->dev); in ip4_dst_hoplimit() local
Dip_fib.h190 #define FIB_RES_SADDR(net, res) \ argument
199 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
203 struct net *net; member
254 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
268 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table()
273 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup()
303 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup()
348 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users()
353 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users()
410 static inline int fib_proc_init(struct net *net) in fib_proc_init()
[all …]
Dinet_hashtables.h177 static inline u32 inet_bhashfn(const struct net *net, const __u16 lport, in inet_bhashfn()
187 static inline u32 inet_lhashfn(const struct net *net, const unsigned short num) in inet_lhashfn()
221 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener()
289 inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, in inet_lookup_established()
298 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup()
319 static inline struct sock *inet_lookup(struct net *net, in inet_lookup()
Dgenetlink.h103 static inline void genl_info_net_set(struct genl_info *info, struct net *net) in genl_info_net_set()
291 struct net *net, struct sk_buff *skb, in genlmsg_multicast_netns()
335 static inline int genlmsg_unicast(struct net *net, struct sk_buff *skb, u32 portid) in genlmsg_unicast()
410 static inline int genl_set_err(struct genl_family *family, struct net *net, in genl_set_err()
420 struct net *net, unsigned int group) in genl_has_listeners()
Dip6_route.h76 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output()
98 static inline int ip6_route_get_saddr(struct net *net, struct rt6_info *rt, in ip6_route_get_saddr()
158 struct net *net; member
Daf_unix.h82 static inline int unix_sysctl_register(struct net *net) { return 0; } in unix_sysctl_register()
83 static inline void unix_sysctl_unregister(struct net *net) {} in unix_sysctl_unregister()
/include/net/netfilter/
Dnf_conntrack_timestamp.h29 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local
40 static inline bool nf_ct_tstamp_enabled(struct net *net) in nf_ct_tstamp_enabled()
45 static inline void nf_ct_set_tstamp(struct net *net, bool enable) in nf_ct_set_tstamp()
57 static inline int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init()
62 static inline void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini()
Dnf_conntrack_ecache.h44 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
89 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
106 const struct net *net = nf_ct_net(ct); in nf_conntrack_event_report() local
117 const struct net *net = nf_ct_net(ct); in nf_conntrack_event() local
150 static inline void nf_conntrack_ecache_delayed_work(struct net *net) in nf_conntrack_ecache_delayed_work()
158 static inline void nf_conntrack_ecache_work(struct net *net) in nf_conntrack_ecache_work()
184 static inline int nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init()
189 static inline void nf_conntrack_ecache_pernet_fini(struct net *net) in nf_conntrack_ecache_pernet_fini()
202 static inline void nf_conntrack_ecache_delayed_work(struct net *net) in nf_conntrack_ecache_delayed_work()
206 static inline void nf_conntrack_ecache_work(struct net *net) in nf_conntrack_ecache_work()
Dnf_conntrack_labels.h28 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
50 static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; } in nf_connlabels_get()
51 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.h339 #define NF_CT_STAT_INC(net, count) __this_cpu_inc((net)->ct.stat->count) argument
340 #define NF_CT_STAT_INC_ATOMIC(net, count) this_cpu_inc((net)->ct.stat->count) argument
341 #define NF_CT_STAT_ADD_ATOMIC(net, count, v) this_cpu_add((net)->ct.stat->count, (v)) argument
/include/linux/
Dnetfilter.h57 struct net *net; member
91 struct net *net, in nf_hook_state_init()
92 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init()
165 struct net *net, in nf_hook_thresh()
170 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in nf_hook_thresh()
198 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook()
201 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook()
224 NF_HOOK_THRESH(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_THRESH()
227 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in NF_HOOK_THRESH()
237 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND()
[all …]
Dseq_file_net.h11 struct net *net; member
/include/linux/sunrpc/
Dstats.h46 static inline int rpc_proc_init(struct net *net) in rpc_proc_init()
51 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit()
72 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register()
73 static inline void rpc_proc_unregister(struct net *net, const char *p) {} in rpc_proc_unregister()
76 static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, in svc_proc_register()
78 static inline void svc_proc_unregister(struct net *net, const char *p) {} in svc_proc_unregister()
/include/net/sctp/
Dsctp.h212 #define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument
213 #define __SCTP_INC_STATS(net, field) __SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument
214 #define SCTP_DEC_STATS(net, field) SNMP_DEC_STATS((net)->sctp.sctp_statistics, field) argument
312 static inline void sctp_dbg_objcnt_init(struct net *net) { return; } in sctp_dbg_objcnt_init()
313 static inline void sctp_dbg_objcnt_exit(struct net *net) { return; } in sctp_dbg_objcnt_exit()
325 static inline int sctp_sysctl_net_register(struct net *net) { return 0; } in sctp_sysctl_net_register()
326 static inline void sctp_sysctl_net_unregister(struct net *net) { return; } in sctp_sysctl_net_unregister()
529 static inline int sctp_phashfn(struct net *net, __u16 lport) in sctp_phashfn()
535 static inline int sctp_ep_hashfn(struct net *net, __u16 lport) in sctp_ep_hashfn()
/include/net/netns/
Dhash.h8 static inline u32 net_hash_mix(const struct net *net) in net_hash_mix()
Dgeneric.h34 static inline void *net_generic(const struct net *net, int id) in net_generic()
/include/net/tc_act/
Dtc_connmark.h8 struct net *net; member

123