/include/net/ |
D | net_namespace.h | 37 struct net { struct 112 extern struct net init_net; argument 115 extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns); 118 static inline struct net *copy_net_ns(unsigned long flags, struct net *net_ns) in copy_net_ns() 128 extern struct net *get_net_ns_by_pid(pid_t pid); 129 extern struct net *get_net_ns_by_fd(int pid); 132 extern void __put_net(struct net *net); 134 static inline struct net *get_net(struct net *net) in get_net() argument 136 atomic_inc(&net->count); in get_net() 137 return net; in get_net() [all …]
|
D | wext.h | 6 struct net; 9 extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, 11 extern int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, 17 static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl() argument 22 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument 30 extern int wext_proc_init(struct net *net); 31 extern void wext_proc_exit(struct net *net); 33 static inline int wext_proc_init(struct net *net) in wext_proc_init() argument 37 static inline void wext_proc_exit(struct net *net) in wext_proc_exit() argument
|
D | icmp.h | 32 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument 33 #define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((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_BH(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics… argument 40 struct net; 46 extern void icmp_out_count(struct net *net, unsigned char type);
|
D | ip_fib.h | 74 struct net *fib_net; 143 extern __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh); 145 #define FIB_RES_SADDR(net, res) \ argument 147 atomic_read(&(net)->ipv4.dev_addr_genid)) ? \ 149 fib_info_update_nh_saddr((net), &FIB_RES_NH(res))) 154 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument 155 FIB_RES_SADDR(net, res)) 181 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument 186 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table() 187 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table() [all …]
|
D | inet6_hashtables.h | 31 static inline unsigned int inet6_ehashfn(struct net *net, in inet6_ehashfn() argument 40 inet_ehash_secret + net_hash_mix(net)); in inet6_ehashfn() 51 struct net *net = sock_net(sk); in inet6_sk_ehashfn() local 53 return inet6_ehashfn(net, laddr, lport, faddr, fport); in inet6_sk_ehashfn() 64 extern struct sock *__inet6_lookup_established(struct net *net, 72 extern struct sock *inet6_lookup_listener(struct net *net, 78 static inline struct sock *__inet6_lookup(struct net *net, in __inet6_lookup() argument 86 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() 91 return inet6_lookup_listener(net, hashinfo, daddr, hnum, dif); in __inet6_lookup() 109 extern struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo,
|
D | udp.h | 84 struct net *net, unsigned num) in udp_hashslot() argument 86 return &table->hash[udp_hashfn(net, num, table->mask)]; in udp_hashslot() 196 extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, 199 extern struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, 202 extern struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, 205 extern struct sock *__udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, 212 #define UDP_INC_STATS_USER(net, field, is_udplite) do { \ argument 213 if (is_udplite) SNMP_INC_STATS_USER((net)->mib.udplite_statistics, field); \ 214 else SNMP_INC_STATS_USER((net)->mib.udp_statistics, field); } while(0) 215 #define UDP_INC_STATS_BH(net, field, is_udplite) do { \ argument [all …]
|
D | ip6_route.h | 70 extern struct dst_entry * ip6_route_output(struct net *net, 73 extern struct dst_entry * ip6_route_lookup(struct net *net, 79 extern int ipv6_route_ioctl(struct net *net, 87 extern int ip6_route_get_saddr(struct net *net, 93 extern struct rt6_info *rt6_lookup(struct net *net, 103 extern void fib6_force_start_gc(struct net *net); 121 extern void rt6_purge_dflt_routers(struct net *net); 144 struct net *net; member 148 extern void rt6_ifdown(struct net *net, struct net_device *dev);
|
D | route.h | 117 extern void rt_cache_flush(struct net *net, int how); 118 extern void rt_cache_flush_batch(struct net *net); 119 extern struct rtable *__ip_route_output_key(struct net *, struct flowi4 *flp); 120 extern struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp, 122 extern struct dst_entry *ipv4_blackhole_route(struct net *net, struct dst_entry *dst_orig); 124 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key() argument 126 return ip_route_output_flow(net, flp, NULL); in ip_route_output_key() 129 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() argument 138 return ip_route_output_key(net, &fl4); in ip_route_output() 141 static inline struct rtable *ip_route_output_ports(struct net *net, struct flowi4 *fl4, in ip_route_output_ports() argument [all …]
|
D | ipv6.h | 113 #define IP6_REPLY_MARK(net, mark) \ argument 114 ((net)->ipv6.sysctl.fwmark_reflect ? (mark) : 0) 122 #define _DEVINC(net, statname, modifier, idev, field) \ argument 127 SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ 131 #define _DEVINCATOMIC(net, statname, modifier, idev, field) \ argument 136 SNMP_INC_STATS##modifier((net)->mib.statname##_statistics, (field));\ 140 #define _DEVINC_ATOMIC_ATOMIC(net, statname, idev, field) \ argument 145 SNMP_INC_STATS_ATOMIC_LONG((net)->mib.statname##_statistics, (field));\ 148 #define _DEVADD(net, statname, modifier, idev, field, val) \ argument 153 SNMP_ADD_STATS##modifier((net)->mib.statname##_statistics, (field), (val));\ [all …]
|
D | ip_vs.h | 34 static inline struct netns_ipvs *net_ipvs(struct net* net) in net_ipvs() argument 36 return net->ipvs; in net_ipvs() 42 static inline struct net *skb_net(const struct sk_buff *skb) in skb_net() 70 static inline struct net *skb_sknet(const struct sk_buff *skb) in skb_sknet() 95 static inline struct net *seq_file_single_net(struct seq_file *seq) in seq_file_single_net() 98 return (struct net *)seq->private; in seq_file_single_net() 396 int (*init_netns)(struct net *net, struct ip_vs_proto_data *pd); 398 void (*exit_netns)(struct net *net, struct ip_vs_proto_data *pd); 433 int (*register_app)(struct net *net, struct ip_vs_app *inc); 435 void (*unregister_app)(struct net *net, struct ip_vs_app *inc); [all …]
|
D | af_unix.h | 73 extern int unix_sysctl_register(struct net *net); 74 extern void unix_sysctl_unregister(struct net *net); 76 static inline int unix_sysctl_register(struct net *net) { return 0; } in unix_sysctl_register() argument 77 static inline void unix_sysctl_unregister(struct net *net) {} in unix_sysctl_unregister() argument
|
/include/net/netfilter/ |
D | nf_conntrack_timestamp.h | 29 struct net *net = nf_ct_net(ct); in nf_ct_tstamp_ext_add() local 31 if (!net->ct.sysctl_tstamp) in nf_ct_tstamp_ext_add() 40 static inline bool nf_ct_tstamp_enabled(struct net *net) in nf_ct_tstamp_enabled() argument 42 return net->ct.sysctl_tstamp != 0; in nf_ct_tstamp_enabled() 45 static inline void nf_ct_set_tstamp(struct net *net, bool enable) in nf_ct_set_tstamp() argument 47 net->ct.sysctl_tstamp = enable; in nf_ct_set_tstamp() 51 extern int nf_conntrack_tstamp_init(struct net *net); 52 extern void nf_conntrack_tstamp_fini(struct net *net); 54 static inline int nf_conntrack_tstamp_init(struct net *net) in nf_conntrack_tstamp_init() argument 59 static inline void nf_conntrack_tstamp_fini(struct net *net) in nf_conntrack_tstamp_fini() argument
|
D | nf_conntrack_acct.h | 31 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local 34 if (!net->ct.sysctl_acct) in nf_ct_acct_ext_add() 49 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled() argument 51 return net->ct.sysctl_acct != 0; in nf_ct_acct_enabled() 55 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct() argument 57 net->ct.sysctl_acct = enable; in nf_ct_set_acct() 60 extern int nf_conntrack_acct_init(struct net *net); 61 extern void nf_conntrack_acct_fini(struct net *net);
|
D | nf_conntrack_ecache.h | 38 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local 41 if (!ctmask && !expmask && net->ct.sysctl_events) { in nf_ct_ecache_ext_add() 71 extern int nf_conntrack_register_notifier(struct net *net, struct nf_ct_event_notifier *nb); 72 extern void nf_conntrack_unregister_notifier(struct net *net, struct nf_ct_event_notifier *nb); 79 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local 82 if (net->ct.nf_conntrack_event_cb == NULL) in nf_conntrack_event_cache() 99 struct net *net = nf_ct_net(ct); in nf_conntrack_eventmask_report() local 104 notify = rcu_dereference(net->ct.nf_conntrack_event_cb); in nf_conntrack_eventmask_report() 169 extern int nf_ct_expect_register_notifier(struct net *net, struct nf_exp_event_notifier *nb); 170 extern void nf_ct_expect_unregister_notifier(struct net *net, struct nf_exp_event_notifier *nb); [all …]
|
D | nf_conntrack_expect.h | 57 static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) in nf_ct_exp_net() 70 int nf_conntrack_expect_init(struct net *net); 71 void nf_conntrack_expect_fini(struct net *net); 74 __nf_ct_expect_find(struct net *net, u16 zone, 78 nf_ct_expect_find_get(struct net *net, u16 zone, 82 nf_ct_find_expectation(struct net *net, u16 zone,
|
D | nf_conntrack_timeout.h | 59 extern int nf_conntrack_timeout_init(struct net *net); 60 extern void nf_conntrack_timeout_fini(struct net *net); 62 static inline int nf_conntrack_timeout_init(struct net *net) in nf_conntrack_timeout_init() argument 67 static inline void nf_conntrack_timeout_fini(struct net *net) in nf_conntrack_timeout_fini() argument
|
D | nf_conntrack_core.h | 23 extern unsigned int nf_conntrack_in(struct net *net, 28 extern int nf_conntrack_init(struct net *net); 29 extern void nf_conntrack_cleanup(struct net *net); 52 nf_conntrack_find_get(struct net *net, u16 zone,
|
D | nf_conntrack_l4proto.h | 53 int (*error)(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb, 65 unsigned int *(*get_timeouts)(struct net *net); 139 #define LOG_INVALID(net, proto) \ argument 140 ((net)->ct.sysctl_log_invalid == (proto) || \ 141 (net)->ct.sysctl_log_invalid == IPPROTO_RAW) 143 #define LOG_INVALID(net, proto) \ argument 144 (((net)->ct.sysctl_log_invalid == (proto) || \ 145 (net)->ct.sysctl_log_invalid == IPPROTO_RAW) \ 149 static inline int LOG_INVALID(struct net *net, int proto) { return 0; } in LOG_INVALID() argument
|
/include/linux/sunrpc/ |
D | stats.h | 41 struct net; 43 int rpc_proc_init(struct net *); 44 void rpc_proc_exit(struct net *); 46 static inline int rpc_proc_init(struct net *net) in rpc_proc_init() argument 51 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit() argument 61 struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *); 62 void rpc_proc_unregister(struct net *,const char *); 64 struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *, 66 void svc_proc_unregister(struct net *, const char *); 72 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register() argument [all …]
|
D | svcauth_gss.h | 21 int gss_svc_init_net(struct net *net); 22 void gss_svc_shutdown_net(struct net *net);
|
/include/net/phonet/ |
D | pn_dev.h | 31 struct phonet_device_list *phonet_device_list(struct net *net); 43 struct net_device *phonet_device_get(struct net *net); 48 int phonet_address_lookup(struct net *net, u8 addr); 54 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr); 55 struct net_device *phonet_route_output(struct net *net, u8 daddr);
|
/include/linux/ |
D | seq_file_net.h | 6 struct net; 7 extern struct net init_net; 11 struct net *net; member 21 static inline struct net *seq_file_net(struct seq_file *seq) in seq_file_net() 24 return ((struct seq_net_private *)seq->private)->net; in seq_file_net()
|
/include/linux/lockd/ |
D | bind.h | 45 struct net *net; member 57 extern int lockd_up(struct net *net); 58 extern void lockd_down(struct net *net);
|
/include/net/netns/ |
D | hash.h | 6 struct net; 8 static inline unsigned net_hash_mix(struct net *net) in net_hash_mix() argument 16 return (unsigned)(((unsigned long)net) >> L1_CACHE_SHIFT); in net_hash_mix()
|
/include/linux/netfilter/ |
D | nfnetlink.h | 82 extern int nfnetlink_has_listeners(struct net *net, unsigned int group); 83 extern int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 pid, unsigned group, 85 extern int nfnetlink_set_err(struct net *net, u32 pid, u32 group, int error); 86 extern int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u_int32_t pid, int flags);
|