Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 146) sorted by relevance

123456

/include/net/
Dnet_namespace.h47 struct net { struct
149 extern struct net init_net; argument
152 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
153 struct net *old_net);
158 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns()
159 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
170 struct net *get_net_ns_by_pid(pid_t pid);
171 struct net *get_net_ns_by_fd(int pid);
182 void __put_net(struct net *net);
184 static inline struct net *get_net(struct net *net) in get_net() argument
[all …]
Dwext.h6 struct net;
9 int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd,
11 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 int wext_proc_init(struct net *net);
31 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
Dip_fib.h106 struct net *fib_net;
175 __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
177 #define FIB_RES_SADDR(net, res) \ argument
179 atomic_read(&(net)->ipv4.dev_addr_genid)) ? \
181 fib_info_update_nh_saddr((net), &FIB_RES_NH(res)))
186 #define FIB_RES_PREFSRC(net, res) ((res).fi->fib_prefsrc ? : \ argument
187 FIB_RES_SADDR(net, res))
214 static inline struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table() argument
220 &net->ipv4.fib_table_hash[TABLE_LOCAL_INDEX] : in fib_get_table()
221 &net->ipv4.fib_table_hash[TABLE_MAIN_INDEX]; in fib_get_table()
[all …]
Dicmp.h33 #define ICMP_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.icmp_statistics, field) argument
34 #define ICMP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((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_BH(net, field) SNMP_INC_STATS_ATOMIC_LONG((net)->mib.icmpmsg_statistics… argument
41 struct net;
53 void icmp_out_count(struct net *net, unsigned char type);
Dip6_route.h68 struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
71 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument
75 return ip6_route_output_flags(net, sk, fl6, 0); in ip6_route_output()
78 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
85 int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg);
91 int ip6_route_get_saddr(struct net *net, struct rt6_info *rt,
95 struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr,
101 void fib6_force_start_gc(struct net *net);
106 struct rt6_info *ip6_dst_alloc(struct net *net, struct net_device *dev,
118 void rt6_purge_dflt_routers(struct net *net);
[all …]
Dl3mdev.h54 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
62 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index()
93 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
114 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument
124 dev = dev_get_by_index_rcu(net, ifindex); in netif_index_is_l3_master()
133 static inline int l3mdev_get_saddr(struct net *net, int ifindex, in l3mdev_get_saddr() argument
143 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_get_saddr()
165 struct dst_entry *l3mdev_rt6_dst_by_oif(struct net *net, in l3mdev_rt6_dst_by_oif() argument
171 dev = dev_get_by_index(net, fl6->flowi6_oif); in l3mdev_rt6_dst_by_oif()
191 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
[all …]
Droute.h116 void rt_cache_flush(struct net *net);
118 struct rtable *__ip_route_output_key_hash(struct net *, struct flowi4 *flp,
121 static inline struct rtable *__ip_route_output_key(struct net *net, in __ip_route_output_key() argument
124 return __ip_route_output_key_hash(net, flp, -1); in __ip_route_output_key()
127 struct rtable *ip_route_output_flow(struct net *, struct flowi4 *flp,
129 struct dst_entry *ipv4_blackhole_route(struct net *net,
132 static inline struct rtable *ip_route_output_key(struct net *net, struct flowi4 *flp) in ip_route_output_key() argument
134 return ip_route_output_flow(net, flp, NULL); in ip_route_output_key()
137 static inline struct rtable *ip_route_output(struct net *net, __be32 daddr, in ip_route_output() argument
146 return ip_route_output_key(net, &fl4); in ip_route_output()
[all …]
Dip.h112 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
113 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
114 int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
115 int (*output)(struct net *, struct sock *, struct sk_buff *));
117 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
118 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb);
136 int ip_send_skb(struct net *net, struct sk_buff *skb);
191 #define IP_INC_STATS(net, field) SNMP_INC_STATS64((net)->mib.ip_statistics, field) argument
192 #define IP_INC_STATS_BH(net, field) SNMP_INC_STATS64_BH((net)->mib.ip_statistics, field) argument
193 #define IP_ADD_STATS(net, field, val) SNMP_ADD_STATS64((net)->mib.ip_statistics, field, val) argument
[all …]
/include/net/netfilter/
Dnf_conntrack_timestamp.h29 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 int nf_conntrack_tstamp_pernet_init(struct net *net);
52 void nf_conntrack_tstamp_pernet_fini(struct net *net);
57 static inline int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init() argument
62 static inline void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini() argument
Dnf_conntrack_acct.h35 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local
38 if (!net->ct.sysctl_acct) in nf_ct_acct_ext_add()
53 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled() argument
55 return net->ct.sysctl_acct != 0; in nf_ct_acct_enabled()
59 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct() argument
61 net->ct.sysctl_acct = enable; in nf_ct_set_acct()
64 int nf_conntrack_acct_pernet_init(struct net *net);
65 void nf_conntrack_acct_pernet_fini(struct net *net);
Dnf_conntrack_ecache.h37 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
40 if (!ctmask && !expmask && net->ct.sysctl_events) { in nf_ct_ecache_ext_add()
70 int nf_conntrack_register_notifier(struct net *net,
72 void nf_conntrack_unregister_notifier(struct net *net,
80 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
83 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_cache()
100 struct net *net = nf_ct_net(ct); in nf_conntrack_eventmask_report() local
105 notify = rcu_dereference(net->ct.nf_conntrack_event_cb); in nf_conntrack_eventmask_report()
170 int nf_ct_expect_register_notifier(struct net *net,
172 void nf_ct_expect_unregister_notifier(struct net *net,
[all …]
Dnf_conntrack_core.h23 unsigned int nf_conntrack_in(struct net *net, u_int8_t pf, unsigned int hooknum,
26 int nf_conntrack_init_net(struct net *net);
27 void nf_conntrack_cleanup_net(struct net *net);
30 int nf_conntrack_proto_pernet_init(struct net *net);
31 void nf_conntrack_proto_pernet_fini(struct net *net);
44 struct net *net,
56 nf_conntrack_find_get(struct net *net,
Dnf_conntrack_l4proto.h29 struct net *net, struct nf_conntrack_tuple *tuple);
54 int (*error)(struct net *net, struct nf_conn *tmpl, struct sk_buff *skb,
66 unsigned int *(*get_timeouts)(struct net *net);
91 struct net *net, void *data);
100 int (*init_net)(struct net *net, u_int16_t proto);
103 struct nf_proto_net *(*get_net_proto)(struct net *net);
125 int nf_ct_l4proto_pernet_register(struct net *net,
127 void nf_ct_l4proto_pernet_unregister(struct net *net,
151 #define LOG_INVALID(net, proto) \ argument
152 ((net)->ct.sysctl_log_invalid == (proto) || \
[all …]
Dnf_conntrack_labels.h30 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
33 words = ACCESS_ONCE(net->ct.label_words); in nf_ct_labels_ext_add()
57 int nf_connlabels_get(struct net *net, unsigned int n_bits);
58 void nf_connlabels_put(struct net *net);
62 static inline int nf_connlabels_get(struct net *net, unsigned int n_bits) { return 0; } in nf_connlabels_get() argument
63 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put() argument
Dnf_conntrack_expect.h59 static inline struct net *nf_ct_exp_net(struct nf_conntrack_expect *exp) in nf_ct_exp_net()
74 int nf_conntrack_expect_pernet_init(struct net *net);
75 void nf_conntrack_expect_pernet_fini(struct net *net);
81 __nf_ct_expect_find(struct net *net,
86 nf_ct_expect_find_get(struct net *net,
91 nf_ct_find_expectation(struct net *net,
Dnf_log.h36 typedef void nf_logfn(struct net *net,
56 void nf_log_set(struct net *net, u_int8_t pf,
58 void nf_log_unset(struct net *net, const struct nf_logger *logger);
60 int nf_log_bind_pf(struct net *net, u_int8_t pf,
62 void nf_log_unbind_pf(struct net *net, u_int8_t pf);
73 void nf_log_packet(struct net *net,
83 void nf_log_trace(struct net *net,
/include/linux/sunrpc/
Dstats.h41 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 …]
Drpc_pipe_fs.h87 extern int rpc_pipefs_init_net(struct net *net);
88 extern void rpc_pipefs_exit_net(struct net *net);
89 extern struct super_block *rpc_get_sb_net(const struct net *net);
90 extern void rpc_put_sb_net(const struct net *net);
104 extern int rpc_add_pipe_dir_object(struct net *net,
107 extern void rpc_remove_pipe_dir_object(struct net *net,
111 struct net *net,
134 extern bool gssd_running(struct net *net);
/include/net/phonet/
Dpn_dev.h31 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/
Dnetfilter.h57 struct net *net; member
59 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
69 struct net *net, in nf_hook_state_init() argument
70 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
78 p->net = net; in nf_hook_state_init()
125 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
126 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
127 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
129 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
172 struct net *net, in nf_hook_thresh() argument
[all …]
Dseq_file_net.h6 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()
Dnetfilter_ipv6.h17 int (*chk_addr)(struct net *net, const struct in6_addr *addr,
20 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
21 int (*output)(struct net *, struct sock *, struct sk_buff *));
25 int ip6_route_me_harder(struct net *net, struct sk_buff *skb);
/include/linux/netfilter/
Dnfnetlink.h17 int (*call_batch)(struct net *net, struct sock *nl, struct sk_buff *skb,
36 int nfnetlink_has_listeners(struct net *net, unsigned int group);
37 struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size,
39 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
41 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
42 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid,
/include/net/sctp/
Dsctp.h92 int sctp_copy_local_addr_list(struct net *, struct sctp_bind_addr *,
96 void sctp_addr_wq_mgmt(struct net *, struct sctp_sockaddr_entry *, int);
119 int sctp_primitive_ASSOCIATE(struct net *, struct sctp_association *, void *arg);
120 int sctp_primitive_SHUTDOWN(struct net *, struct sctp_association *, void *arg);
121 int sctp_primitive_ABORT(struct net *, struct sctp_association *, void *arg);
122 int sctp_primitive_SEND(struct net *, struct sctp_association *, void *arg);
123 int sctp_primitive_REQUESTHEARTBEAT(struct net *, struct sctp_association *, void *arg);
124 int sctp_primitive_ASCONF(struct net *, struct sctp_association *, void *arg);
135 struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *,
152 int sctp_snmp_proc_init(struct net *net);
[all …]
/include/linux/lockd/
Dbind.h45 struct net *net; member
57 extern int lockd_up(struct net *net);
58 extern void lockd_down(struct net *net);

123456