/include/net/ |
A D | net_namespace.h | 61 struct net { struct 78 * methods on dead net ( argument 94 struct idr netns_ids; argument 99 * refcounted against netns argument 102 struct proc_dir_entry *proc_net; argument 109 struct sock *rtnl; /* rtnetlink socket */ argument 117 struct raw_notifier_head netdev_chain; argument 124 struct net_device *loopback_dev; /* The loopback */ argument 129 struct netns_core core; argument 161 struct net_generic __rcu *gen; argument [all …]
|
A D | l3mdev.h | 90 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() 135 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() 157 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() 248 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() 254 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index_rcu() 259 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() 278 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() 283 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() 289 struct dst_entry *l3mdev_link_scope_lookup(struct net *net, struct flowi6 *fl6) in l3mdev_link_scope_lookup() 339 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() [all …]
|
A 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()
|
A D | ip.h | 294 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 295 #define __IP_INC_STATS(net, field) __SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument 300 #define NET_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.net_statistics, field) argument 301 #define __NET_INC_STATS(net, field) __SNMP_INC_STATS((net)->mib.net_statistics, field) argument 380 static inline bool inet_is_local_reserved_port(struct net *net, unsigned short port) in inet_is_local_reserved_port() 402 #define IP4_REPLY_MARK(net, mark) \ argument 471 struct net *net; in ip_dst_mtu_maybe_forward() local 554 static inline void ip_select_ident_segs(struct net *net, struct sk_buff *skb, in ip_select_ident_segs() 586 static inline void ip_select_ident(struct net *net, struct sk_buff *skb, in ip_select_ident() 710 static inline u32 ipv4_portaddr_hash(const struct net *net, in ipv4_portaddr_hash() [all …]
|
A 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
|
A D | ipv6.h | 211 #define IP6_REPLY_MARK(net, mark) \ argument 267 #define IP6_INC_STATS(net, idev,field) \ argument 269 #define __IP6_INC_STATS(net, idev,field) \ argument 271 #define IP6_ADD_STATS(net, idev,field,val) \ argument 273 #define __IP6_ADD_STATS(net, idev,field,val) \ argument 275 #define IP6_UPD_PO_STATS(net, idev,field,val) \ argument 277 #define __IP6_UPD_PO_STATS(net, idev,field,val) \ argument 279 #define ICMP6_INC_STATS(net, idev, field) \ argument 281 #define __ICMP6_INC_STATS(net, idev, field) \ argument 284 #define ICMP6MSGOUT_INC_STATS(net, idev, field) \ argument [all …]
|
A D | inet6_hashtables.h | 85 static inline struct sock *__inet6_lookup(const struct net *net, in __inet6_lookup() 107 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() 153 struct net *net = skb_dst_dev_net_rcu(skb); in __inet6_lookup_skb() local 178 static inline bool inet6_match(const struct net *net, const struct sock *sk, in inet6_match()
|
A D | ip_fib.h | 297 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() 336 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() 352 static inline unsigned int fib4_rules_seq_read(const struct net *net) in fib4_rules_seq_read() 357 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() 374 static inline int fib_lookup(struct net *net, struct flowi4 *flp, in fib_lookup() 408 static inline bool fib4_has_custom_rules(const struct net *net) in fib4_has_custom_rules() 418 static inline bool fib4_rules_early_flow_dissect(struct net *net, in fib4_rules_early_flow_dissect() 470 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() 475 static inline int fib_num_tclassid_users(struct net *net) in fib_num_tclassid_users() 642 static inline int fib_proc_init(struct net *net) in fib_proc_init() [all …]
|
A D | inet_hashtables.h | 244 static inline u32 inet_bhashfn(const struct net *net, const __u16 lport, in inet_bhashfn() 252 const struct net *net, unsigned short port) in inet_bhashfn_portaddr() 304 static inline struct sock *inet_lookup_listener(struct net *net, in inet_lookup_listener() 343 static inline bool inet_match(const struct net *net, const struct sock *sk, in inet_match() 388 inet_lookup_established(struct net *net, struct inet_hashinfo *hashinfo, in inet_lookup_established() 397 static inline struct sock *__inet_lookup(struct net *net, in __inet_lookup() 418 static inline struct sock *inet_lookup(struct net *net, in inet_lookup() 437 struct sock *inet_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet_steal_sock() 484 struct net *net = skb_dst_dev_net_rcu(skb); in __inet_lookup_skb() local
|
A D | route.h | 166 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key() 177 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key() 186 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() 201 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports() 342 struct net *net = sock_net(sk); in ip_route_connect() local 390 const struct net *net; in ip4_dst_hoplimit() local
|
A D | ip6_fib.h | 91 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() 96 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() 97 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() 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() 111 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() 611 struct net *net, in pol_lookup_func() 626 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() 638 static inline bool fib6_rules_early_flow_dissect(struct net *net, in fib6_rules_early_flow_dissect() 659 static inline bool fib6_has_custom_rules(const struct net *net) in fib6_has_custom_rules() [all …]
|
A D | udp.h | 109 const struct net *net, in udp_hashslot() 333 static inline __be16 udp_flow_src_port(struct net *net, struct sk_buff *skb, in udp_flow_src_port() 374 static inline bool udp_sk_bound_dev_eq(const struct net *net, int bound_dev_if, in udp_sk_bound_dev_eq() 515 #define UDP_INC_STATS(net, field, is_udplite) do { \ argument 518 #define __UDP_INC_STATS(net, field, is_udplite) do { \ argument 522 #define __UDP6_INC_STATS(net, field, is_udplite) do { \ argument 526 #define UDP6_INC_STATS(net, field, __lite) do { \ argument
|
/include/linux/ |
A D | rtnetlink.h | 111 #define ASSERT_RTNL_NET(net) \ argument 118 #define rcu_dereference_rtnl_net(net, p) \ argument 120 #define rtnl_net_dereference(net, p) \ argument 122 #define rcu_replace_pointer_rtnl_net(net, rp, p) \ argument 128 static inline void rtnl_net_lock(struct net *net) in rtnl_net_lock() 133 static inline void rtnl_net_unlock(struct net *net) in rtnl_net_unlock() 138 static inline int rtnl_net_trylock(struct net *net) in rtnl_net_trylock() 148 static inline void ASSERT_RTNL_NET(struct net *net) in ASSERT_RTNL_NET() 153 #define rcu_dereference_rtnl_net(net, p) \ argument 155 #define rtnl_net_dereference(net, p) \ argument [all …]
|
A D | netfilter.h | 84 struct net *net; member 167 struct net *net, in nf_hook_state_init() 168 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() 230 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook() 300 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in NF_HOOK_COND() 314 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in NF_HOOK() 325 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in NF_HOOK_LIST() 411 int (*okfn)(struct net *, struct sock *, struct sk_buff *), in NF_HOOK_COND() 420 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in NF_HOOK() 428 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in NF_HOOK_LIST() [all …]
|
A D | netfilter_ipv6.h | 79 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() 99 static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, in nf_ip6_route() 125 static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk, in nf_br_ip6_fragment() 128 int (*output)(struct net *, struct sock *sk, in nf_br_ip6_fragment() 148 static inline int nf_ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb) in nf_ip6_route_me_harder()
|
A D | nfslocalio.h | 35 struct net __rcu *net; /* nfsd's network namespace */ member 79 static inline void nfs_to_nfsd_net_put(struct net *net) in nfs_to_nfsd_net_put() 98 struct net *net; in nfs_to_nfsd_file_put_local() local
|
A D | mroute_base.h | 73 static inline int mr_call_vif_notifiers(struct net *net, in mr_call_vif_notifiers() 197 static inline int mr_call_mfc_notifiers(struct net *net, in mr_call_mfc_notifiers() 248 possible_net_t net; member 265 static inline bool mr_can_free_table(struct net *net) in mr_can_free_table() 353 struct mr_table *(*iter)(struct net *net, in mr_rtm_dumproute() 364 static inline int mr_dump(struct net *net, struct notifier_block *nb, in mr_dump() 366 int (*rules_dump)(struct net *net, in mr_dump() 369 struct mr_table *(*mr_iter)(struct net *net, in mr_dump() 442 static inline void *mr_vif_seq_idx(struct net *net, struct mr_vif_iter *iter, in mr_vif_seq_idx() 459 static inline void *mr_mfc_seq_idx(struct net *net, in mr_mfc_seq_idx()
|
/include/net/netfilter/ |
A D | nf_conntrack_l4proto.h | 180 static inline struct nf_generic_net *nf_generic_pernet(struct net *net) in nf_generic_pernet() 185 static inline struct nf_tcp_net *nf_tcp_pernet(struct net *net) in nf_tcp_pernet() 190 static inline struct nf_udp_net *nf_udp_pernet(struct net *net) in nf_udp_pernet() 195 static inline struct nf_icmp_net *nf_icmp_pernet(struct net *net) in nf_icmp_pernet() 200 static inline struct nf_icmp_net *nf_icmpv6_pernet(struct net *net) in nf_icmpv6_pernet() 221 static inline struct nf_sctp_net *nf_sctp_pernet(struct net *net) in nf_sctp_pernet() 228 static inline struct nf_gre_net *nf_gre_pernet(struct net *net) in nf_gre_pernet()
|
A D | nf_conntrack_labels.h | 40 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local 58 static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; } in nf_connlabels_get() 59 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put()
|
A D | nf_conntrack_ecache.h | 105 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local 160 static inline bool nf_conntrack_ecache_dwork_pending(const struct net *net) in nf_conntrack_ecache_dwork_pending() 173 static inline void nf_conntrack_ecache_work(struct net *net, in nf_conntrack_ecache_work() 178 static inline void nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init() 182 static inline void nf_conntrack_ecache_pernet_fini(struct net *net) in nf_conntrack_ecache_pernet_fini() 185 static inline bool nf_conntrack_ecache_dwork_pending(const struct net *net) { return false; } in nf_conntrack_ecache_dwork_pending()
|
A 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()
|
A D | nf_conntrack_timestamp.h | 30 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local 44 static inline void nf_conntrack_tstamp_pernet_init(struct net *net) {} in nf_conntrack_tstamp_pernet_init()
|
A 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()
|
/include/linux/sunrpc/ |
A D | stats.h | 56 static inline int rpc_proc_init(struct net *net) in rpc_proc_init() 61 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit() 64 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register() 65 static inline void rpc_proc_unregister(struct net *net, const char *p) {} in rpc_proc_unregister() 68 static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, in svc_proc_register() 70 static inline void svc_proc_unregister(struct net *net, const char *p) {} in svc_proc_unregister()
|
/include/net/sctp/ |
A D | sctp.h | 207 #define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument 208 #define __SCTP_INC_STATS(net, field) __SNMP_INC_STATS((net)->sctp.sctp_statistics, field) argument 209 #define SCTP_DEC_STATS(net, field) SNMP_DEC_STATS((net)->sctp.sctp_statistics, field) argument 305 static inline void sctp_dbg_objcnt_init(struct net *net) { return; } in sctp_dbg_objcnt_init() 317 static inline int sctp_sysctl_net_register(struct net *net) { return 0; } in sctp_sysctl_net_register() 318 static inline void sctp_sysctl_net_unregister(struct net *net) { return; } in sctp_sysctl_net_unregister() 494 static inline int sctp_phashfn(struct net *net, __u16 lport) in sctp_phashfn() 500 static inline int sctp_ep_hashfn(struct net *net, __u16 lport) in sctp_ep_hashfn()
|