Home
last modified time | relevance | path

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

12345678

/include/net/
Dnet_namespace.h61 struct net { struct
198 extern struct net init_net; argument
201 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
202 struct net *old_net);
204 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
209 struct net *get_net_ns_by_fd(int fd);
213 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns()
214 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
221 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument
235 static inline struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd()
[all …]
Dwext.h7 struct net;
10 int wext_handle_ioctl(struct net *net, unsigned int cmd,
12 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd,
18 static inline int wext_handle_ioctl(struct net *net, unsigned int cmd, in wext_handle_ioctl() argument
23 static inline int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
31 int wext_proc_init(struct net *net);
32 void wext_proc_exit(struct net *net);
34 static inline int wext_proc_init(struct net *net) in wext_proc_init() argument
38 static inline void wext_proc_exit(struct net *net) in wext_proc_exit() argument
Dip6_fib.h102 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
107 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument
108 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument
112 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument
114 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src()
117 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
119 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc()
122 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
124 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec()
420 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
[all …]
Dipv6_stubs.h27 struct dst_entry *(*ipv6_dst_lookup_flow)(struct net *net,
33 struct fib6_table *(*fib6_get_table)(struct net *net, u32 id);
34 int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6,
36 int (*fib6_table_lookup)(struct net *net, struct fib6_table *table,
39 void (*fib6_select_path)(const struct net *net, struct fib6_result *res,
46 int (*fib6_nh_init)(struct net *net, struct fib6_nh *fib6_nh,
51 void (*fib6_update_sernum)(struct net *net, struct fib6_info *rt);
52 int (*ip6_del_rt)(struct net *net, struct fib6_info *rt, bool skip_notify);
53 void (*fib6_rt_update)(struct net *net, struct fib6_info *rt,
68 int (*ipv6_fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
[all …]
Dl3mdev.h21 typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d);
56 int l3mdev_ifindex_lookup_by_table_id(enum l3mdev_type l3type, struct net *net,
59 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
62 void l3mdev_update_flow(struct net *net, struct flowi *fl);
76 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
84 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index()
119 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
121 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
124 ifindex = l3mdev_master_upper_ifindex_by_index_rcu(net, ifindex); in l3mdev_master_upper_ifindex_by_index()
131 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
[all …]
Dip_fib.h138 struct net *fib_net;
204 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
206 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
243 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
246 int __net_init fib4_notifier_init(struct net *net);
247 void __net_exit fib4_notifier_exit(struct net *net);
249 void fib_info_notify_update(struct net *net, struct nl_info *info);
250 int fib_notify(struct net *net, struct notifier_block *nb,
276 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
278 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *,
[all …]
Dseg6_hmac.h45 extern struct seg6_hmac_info *seg6_hmac_info_lookup(struct net *net, u32 key);
46 extern int seg6_hmac_info_add(struct net *net, u32 key,
48 extern int seg6_hmac_info_del(struct net *net, u32 key);
49 extern int seg6_push_hmac(struct net *net, struct in6_addr *saddr,
54 extern int seg6_hmac_net_init(struct net *net);
55 extern void seg6_hmac_net_exit(struct net *net);
Dfib_notifier.h31 unsigned int (*fib_seq_read)(struct net *net);
32 int (*fib_dump)(struct net *net, struct notifier_block *nb,
41 int call_fib_notifiers(struct net *net, enum fib_event_type event_type,
43 int register_fib_notifier(struct net *net, struct notifier_block *nb,
46 int unregister_fib_notifier(struct net *net, struct notifier_block *nb);
48 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net);
Dip6_route.h82 struct dst_entry *ip6_route_input_lookup(struct net *net,
87 struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
90 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument
94 return ip6_route_output_flags(net, sk, fl6, 0); in ip6_route_output()
107 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
109 struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
117 int ipv6_route_ioctl(struct net *net, unsigned int cmd,
122 int ip6_ins_rt(struct net *net, struct fib6_info *f6i);
123 int ip6_del_rt(struct net *net, struct fib6_info *f6i, bool skip_notify);
129 static inline int ip6_route_get_saddr(struct net *net, struct fib6_info *f6i, in ip6_route_get_saddr() argument
[all …]
Dinet6_hashtables.h43 struct sock *__inet6_lookup_established(struct net *net,
51 typedef u32 (inet6_ehashfn_t)(const struct net *net,
59 struct sock *inet6_lookup_reuseport(struct net *net, struct sock *sk,
67 struct sock *inet6_lookup_listener(struct net *net,
76 struct sock *inet6_lookup_run_sk_lookup(struct net *net,
85 static inline struct sock *__inet6_lookup(struct net *net, in __inet6_lookup() argument
95 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
102 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
107 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument
132 reuse_sk = inet6_lookup_reuseport(net, sk, skb, doff, in inet6_steal_sock()
[all …]
/include/linux/sunrpc/
Dstats.h42 struct net;
44 int rpc_proc_init(struct net *);
45 void rpc_proc_exit(struct net *);
46 struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *);
47 void rpc_proc_unregister(struct net *,const char *);
49 struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *,
51 void svc_proc_unregister(struct net *, const char *);
56 static inline int rpc_proc_init(struct net *net) in rpc_proc_init() argument
61 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit() argument
64 static inline struct proc_dir_entry *rpc_proc_register(struct net *net, struct rpc_stat *s) { retur… in rpc_proc_register() argument
[all …]
/include/net/netfilter/
Dnf_synproxy.h30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument
32 return net_generic(net, synproxy_net_id); in synproxy_pernet()
52 void synproxy_send_client_synack(struct net *net, const struct sk_buff *skb,
56 bool synproxy_recv_client_ack(struct net *net,
65 int nf_synproxy_ipv4_init(struct synproxy_net *snet, struct net *net);
66 void nf_synproxy_ipv4_fini(struct synproxy_net *snet, struct net *net);
69 void synproxy_send_client_synack_ipv6(struct net *net,
74 bool synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb,
80 int nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net);
81 void nf_synproxy_ipv6_fini(struct synproxy_net *snet, struct net *net);
[all …]
Dnf_conntrack_l4proto.h51 struct net *net, void *data);
66 struct net *net,
71 struct net *net,
136 void nf_conntrack_generic_init_net(struct net *net);
137 void nf_conntrack_tcp_init_net(struct net *net);
138 void nf_conntrack_udp_init_net(struct net *net);
139 void nf_conntrack_gre_init_net(struct net *net);
140 void nf_conntrack_dccp_init_net(struct net *net);
141 void nf_conntrack_sctp_init_net(struct net *net);
142 void nf_conntrack_icmp_init_net(struct net *net);
[all …]
Dnf_conntrack_ecache.h68 void nf_conntrack_register_notifier(struct net *net,
70 void nf_conntrack_unregister_notifier(struct net *net);
101 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
104 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_cache()
141 void nf_conntrack_ecache_work(struct net *net, enum nf_ct_ecache_state state);
143 void nf_conntrack_ecache_pernet_init(struct net *net);
144 void nf_conntrack_ecache_pernet_fini(struct net *net);
146 struct nf_conntrack_net_ecache *nf_conn_pernet_ecache(const struct net *net);
148 static inline bool nf_conntrack_ecache_dwork_pending(const struct net *net) in nf_conntrack_ecache_dwork_pending() argument
150 return net->ct.ecache_dwork_pending; in nf_conntrack_ecache_dwork_pending()
[all …]
Dnf_conntrack_count.h18 struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int family,
20 void nf_conncount_destroy(struct net *net, unsigned int family,
23 unsigned int nf_conncount_count(struct net *net,
29 int nf_conncount_add(struct net *net, struct nf_conncount_list *list,
35 bool nf_conncount_gc_list(struct net *net,
Dnf_conntrack_labels.h40 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
42 if (net->ct.labels_used == 0) in nf_ct_labels_ext_add()
55 int nf_connlabels_get(struct net *net, unsigned int bit);
56 void nf_connlabels_put(struct net *net);
58 static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; } in nf_connlabels_get() argument
59 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put() argument
Dnf_conntrack_acct.h33 struct net *net = nf_ct_net(ct); in nf_ct_acct_ext_add() local
36 if (!net->ct.sysctl_acct) in nf_ct_acct_ext_add()
51 static inline bool nf_ct_acct_enabled(struct net *net) in nf_ct_acct_enabled() argument
54 return net->ct.sysctl_acct != 0; in nf_ct_acct_enabled()
61 static inline void nf_ct_set_acct(struct net *net, bool enable) in nf_ct_set_acct() argument
64 net->ct.sysctl_acct = enable; in nf_ct_set_acct()
79 void nf_conntrack_acct_pernet_init(struct net *net);
Dnf_log.h39 typedef void nf_logfn(struct net *net,
62 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger);
63 void nf_log_unset(struct net *net, const struct nf_logger *logger);
65 int nf_log_bind_pf(struct net *net, u_int8_t pf,
67 void nf_log_unbind_pf(struct net *net, u_int8_t pf);
77 void nf_log_packet(struct net *net,
87 void nf_log_trace(struct net *net,
/include/linux/
Dnetfilter_ipv6.h44 int (*chk_addr)(struct net *net, const struct in6_addr *addr,
46 int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb);
47 int (*dev_get_saddr)(struct net *net, const struct net_device *dev,
50 int (*route)(struct net *net, struct dst_entry **dst, struct flowi *fl,
58 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
59 int (*output)(struct net *, struct sock *, struct sk_buff *));
62 int (*br_fragment)(struct net *net, struct sock *sk,
65 int (*output)(struct net *, struct sock *sk,
82 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument
91 return v6_ops->chk_addr(net, addr, dev, strict); in nf_ipv6_chk_addr()
[all …]
Dseq_file_net.h8 struct net;
9 extern struct net init_net;
13 struct net *net; member
18 static inline struct net *seq_file_net(struct seq_file *seq) in seq_file_net()
21 return ((struct seq_net_private *)seq->private)->net; in seq_file_net()
31 static inline struct net *seq_file_single_net(struct seq_file *seq) in seq_file_single_net()
34 return (struct net *)seq->private; in seq_file_single_net()
Dnetfilter.h75 struct net *net; member
76 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
154 struct net *net, in nf_hook_state_init() argument
155 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
162 p->net = net; in nf_hook_state_init()
188 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
189 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
190 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
192 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
216 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument
[all …]
/include/linux/netfilter/
Dnfnetlink.h12 struct net *net; member
48 int (*commit)(struct net *net, struct sk_buff *skb);
49 int (*abort)(struct net *net, struct sk_buff *skb,
51 bool (*valid_genid)(struct net *net, u32 genid);
59 int nfnetlink_has_listeners(struct net *net, unsigned int group);
60 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
62 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
63 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid);
64 void nfnetlink_broadcast(struct net *net, struct sk_buff *skb, __u32 portid,
/include/net/phonet/
Dpn_dev.h16 struct net;
23 struct phonet_device_list *phonet_device_list(struct net *net);
35 struct net_device *phonet_device_get(struct net *net);
40 int phonet_address_lookup(struct net *net, u8 addr);
46 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr);
47 struct net_device *phonet_route_output(struct net *net, u8 daddr);
/include/net/netfilter/ipv6/
Dnf_defrag_ipv6.h8 int nf_defrag_ipv6_enable(struct net *net);
9 void nf_defrag_ipv6_disable(struct net *net);
13 int nf_ct_frag6_gather(struct net *net, struct sk_buff *skb, u32 user);
/include/net/netfilter/ipv4/
Dnf_defrag_ipv4.h5 struct net;
6 int nf_defrag_ipv4_enable(struct net *net);
7 void nf_defrag_ipv4_disable(struct net *net);

12345678