/include/net/ |
D | net_namespace.h | 56 struct net { struct 60 refcount_t passive; /* To decide when the network argument 73 struct list_head list; /* list of network namespaces */ argument 74 struct list_head exit_list; /* To linked to call pernet exit argument 75 * methods on dead net ( argument 87 struct idr netns_ids; argument 92 struct proc_dir_entry *proc_net; argument 93 struct proc_dir_entry *proc_net_stat; argument 99 struct sock *rtnl; /* rtnetlink socket */ argument 106 struct raw_notifier_head netdev_chain; argument [all …]
|
D | l3mdev.h | 76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() 121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() 143 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() 232 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() 238 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu() 243 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() 262 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() 267 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() 273 struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6) in l3mdev_link_scope_lookup() 316 int l3mdev_ifindex_lookup_by_table_id(enum l3mdev_type l3type, struct net *net, in l3mdev_ifindex_lookup_by_table_id() [all …]
|
D | wext.h | 18 static inline int wext_handle_ioctl(struct net *net, 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()
|
D | ip.h | 287 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 288 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 289 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument 290 #define __IP_ADD_STATS(net, field, val) __SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument 291 #define IP_UPD_PO_STATS(net, field, val) SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, val) argument 292 #define __IP_UPD_PO_STATS(net, field, val) __SNMP_UPD_PO_STATS64((net)->mib.ip_statistics, field, v… argument 293 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument 294 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument 295 #define NET_ADD_STATS(net, field, adnd) SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument 296 #define __NET_ADD_STATS(net, field, adnd) __SNMP_ADD_STATS((net)->mib.net_statistics, field, adnd) argument [all …]
|
D | icmp.h | 29 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument 30 #define __ICMP_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument 31 #define ICMPMSGOUT_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument 32 #define ICMPMSGIN_INC_STATS(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics, … argument
|
D | ipv6.h | 198 #define IP6_REPLY_MARK(net, mark) \ argument 207 #define _DEVINC(net, statname, mod, idev, field) \ argument 216 #define _DEVINCATOMIC(net, statname, mod, idev, field) \ argument 225 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument 233 #define _DEVADD(net, statname, mod, idev, field, val) \ argument 241 #define _DEVUPD(net, statname, mod, idev, field, val) \ argument 251 #define IP6_INC_STATS(net, idev,field) \ argument 253 #define __IP6_INC_STATS(net, idev,field) \ argument 255 #define IP6_ADD_STATS(net, idev,field,val) \ argument 257 #define __IP6_ADD_STATS(net, idev,field,val) \ argument [all …]
|
D | route.h | 123 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key() 140 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key() 145 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() 157 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports() 172 static inline struct rtable *ip_route_output_gre(struct net *net, struct flowi4 *fl4, in ip_route_output_gre() 312 struct net *net = sock_net(sk); in ip_route_connect() local 360 struct net *net = dev_net(dst->dev); in ip4_dst_hoplimit() local
|
D | udp.h | 81 struct net *net, unsigned int num) in udp_hashslot() 220 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port() 261 static inline bool udp_sk_bound_dev_eq(struct net *net, int bound_dev_if, in udp_sk_bound_dev_eq() 411 #define UDP_INC_STATS(net, field, is_udplite) do { \ argument 414 #define __UDP_INC_STATS(net, field, is_udplite) do { \ argument 418 #define __UDP6_INC_STATS(net, field, is_udplite) do { \ argument 422 #define UDP6_INC_STATS(net, field, __lite) do { \ argument
|
D | ip_fib.h | 287 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() 301 static inline struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table() 306 static inline int fib_lookup(struct net *net, const struct flowi4 *flp, in fib_lookup() 326 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() 336 static inline int fib4_rules_dump(struct net *net, struct notifier_block *nb, in fib4_rules_dump() 342 static inline unsigned int fib4_rules_seq_read(struct net *net) in fib4_rules_seq_read() 347 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() 364 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup() 398 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() 408 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() [all …]
|
D | inet_hashtables.h | 213 static inline u32 inet_bhashfn(const struct net *net, const __u16 lport, in inet_bhashfn() 223 static inline u32 inet_lhashfn(const struct net *net, const unsigned short num) in inet_lhashfn() 260 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener() 299 static inline bool INET_MATCH(struct net *net, const struct sock *sk, in INET_MATCH() 323 inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, in inet_lookup_established() 332 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup() 353 static inline struct sock *inet_lookup(struct net *net, in inet_lookup()
|
D | ip6_fib.h | 101 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() 106 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() 107 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() 111 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() 116 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() 121 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() 586 struct net *net, in pol_lookup_func() 601 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() 613 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() 634 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() [all …]
|
D | inet6_hashtables.h | 60 static inline struct sock *__inet6_lookup(struct net *net, in __inet6_lookup() 107 static inline bool inet6_match(struct net *net, const struct sock *sk, in inet6_match()
|
D | dst.h | 331 struct net *net) in __skb_tunnel_rx() 356 struct net *net) in skb_tunnel_rx() 441 static inline int dst_output(struct net *net, struct sock *sk, struct sk_buff *skb) in dst_output() 478 static inline struct dst_entry *xfrm_lookup(struct net *net, in xfrm_lookup() 488 xfrm_lookup_with_ifid(struct net *net, struct dst_entry *dst_orig, in xfrm_lookup_with_ifid() 495 static inline struct dst_entry *xfrm_lookup_route(struct net *net, in xfrm_lookup_route()
|
/include/net/netfilter/ |
D | nf_conntrack_l4proto.h | 186 static inline struct nf_generic_net *nf_generic_pernet(struct net *net) in nf_generic_pernet() 191 static inline struct nf_tcp_net *nf_tcp_pernet(struct net *net) in nf_tcp_pernet() 196 static inline struct nf_udp_net *nf_udp_pernet(struct net *net) in nf_udp_pernet() 201 static inline struct nf_icmp_net *nf_icmp_pernet(struct net *net) in nf_icmp_pernet() 206 static inline struct nf_icmp_net *nf_icmpv6_pernet(struct net *net) in nf_icmpv6_pernet() 227 static inline struct nf_dccp_net *nf_dccp_pernet(struct net *net) in nf_dccp_pernet() 234 static inline struct nf_sctp_net *nf_sctp_pernet(struct net *net) in nf_sctp_pernet() 241 static inline struct nf_gre_net *nf_gre_pernet(struct net *net) in nf_gre_pernet()
|
D | nf_conntrack_ecache.h | 45 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local 114 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local 133 const struct net *net = nf_ct_net(ct); in nf_conntrack_event_report() local 148 const struct net *net = nf_ct_net(ct); in nf_conntrack_event() local 172 static inline bool nf_conntrack_ecache_dwork_pending(const struct net *net) in nf_conntrack_ecache_dwork_pending() 185 static inline void nf_conntrack_ecache_work(struct net *net, in nf_conntrack_ecache_work() 190 static inline void nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init() 194 static inline void nf_conntrack_ecache_pernet_fini(struct net *net) in nf_conntrack_ecache_pernet_fini() 207 static inline bool nf_conntrack_ecache_dwork_pending(const struct net *net) { return false; } in nf_conntrack_ecache_dwork_pending()
|
D | nf_conntrack_labels.h | 32 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local 54 static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; } in nf_connlabels_get() 55 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put()
|
D | nf_conntrack_acct.h | 33 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local 51 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled() 61 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct()
|
D | nf_synproxy.h | 30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() 84 nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) { return 0; } in nf_synproxy_ipv6_init() 86 nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net) {}; in nf_synproxy_ipv6_fini()
|
D | nf_conntrack_timestamp.h | 30 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local 47 static inline void nf_conntrack_tstamp_pernet_init(struct net *net) {} in nf_conntrack_tstamp_pernet_init()
|
/include/linux/ |
D | netfilter.h | 74 struct net *net; member 152 struct net *net, in nf_hook_state_init() 153 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() 214 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() 217 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook() 285 NF_HOOK_COND(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_COND() 287 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in NF_HOOK_COND() 299 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, struct sk_buff *skb, in NF_HOOK() 301 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in NF_HOOK() 310 NF_HOOK_LIST(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK_LIST() [all …]
|
D | netfilter_ipv6.h | 82 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() 102 static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, in nf_ip6_route() 128 static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk, in nf_br_ip6_fragment() 131 int (*output)(struct net *, struct sock *sk, in nf_br_ip6_fragment() 151 static inline int nf_ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb) in nf_ip6_route_me_harder()
|
D | mroute_base.h | 70 static inline int mr_call_vif_notifiers(struct net *net, in mr_call_vif_notifiers() 192 static inline int mr_call_mfc_notifiers(struct net *net, in mr_call_mfc_notifiers() 243 possible_net_t net; member 343 struct mr_table *(*iter)(struct net *net, in mr_rtm_dumproute() 354 static inline int mr_dump(struct net *net, struct notifier_block *nb, in mr_dump() 356 int (*rules_dump)(struct net *net, in mr_dump() 359 struct mr_table *(*mr_iter)(struct net *net, in mr_dump() 432 static inline void *mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter, in mr_vif_seq_idx() 449 static inline void *mr_mfc_seq_idx(struct net *net, in mr_mfc_seq_idx()
|
/include/linux/sunrpc/ |
D | stats.h | 47 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/net/sctp/ |
D | sctp.h | 212 #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 310 static inline void sctp_dbg_objcnt_init(struct net *net) { return; } in sctp_dbg_objcnt_init() 322 static inline int sctp_sysctl_net_register(struct net *net) { return 0; } in sctp_sysctl_net_register() 323 static inline void sctp_sysctl_net_unregister(struct net *net) { return; } in sctp_sysctl_net_unregister() 501 static inline int sctp_phashfn(struct net *net, __u16 lport) in sctp_phashfn() 507 static inline int sctp_ep_hashfn(struct net *net, __u16 lport) in sctp_ep_hashfn()
|
/include/net/netns/ |
D | hash.h | 7 static inline u32 net_hash_mix(const struct net *net) in net_hash_mix()
|