Home
last modified time | relevance | path

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

12345678

/include/net/
A Dnet_namespace.h263 void __put_net(struct net *net);
266 static inline struct net *get_net(struct net *net) in get_net() argument
272 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument
307 static inline struct net *get_net(struct net *net) in get_net() argument
316 static inline struct net *maybe_get_net(struct net *net) in maybe_get_net() argument
379 static inline struct net *get_net_track(struct net *net, in get_net_track() argument
395 struct net __rcu *net; member
445 int peernet2id(const struct net *net, struct net *peer);
446 bool peernet_has_id(const struct net *net, struct net *peer);
447 struct net *get_net_ns_by_id(const struct net *net, int id);
[all …]
A 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
A 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,
55 extern int seg6_hmac_net_init(struct net *net);
56 extern void seg6_hmac_net_exit(struct net *net);
60 static inline int seg6_hmac_net_init(struct net *net) { return 0; } in seg6_hmac_net_init() argument
61 static inline void seg6_hmac_net_exit(struct net *net) {} in seg6_hmac_net_exit() argument
A Dip_fib.h165 int __net_init fib4_semantics_init(struct net *net);
166 void __net_exit fib4_semantics_exit(struct net *net);
250 int __net_init fib4_notifier_init(struct net *net);
251 void __net_exit fib4_notifier_exit(struct net *net);
365 int __net_init fib4_rules_init(struct net *net);
366 void __net_exit fib4_rules_exit(struct net *net);
480 int fib_unmerge(struct net *net);
624 void fib_flush(struct net *net);
639 int __net_init fib_proc_init(struct net *net);
640 void __net_exit fib_proc_exit(struct net *net);
[all …]
A Dip6_fib.h106 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument
111 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument
465 void fib6_clean_all_skip_notify(struct net *net,
489 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
495 int call_fib6_entry_notifiers(struct net *net,
499 int call_fib6_multipath_entry_notifiers(struct net *net,
564 int __net_init fib6_notifier_init(struct net *net);
565 void __net_exit fib6_notifier_exit(struct net *net);
567 unsigned int fib6_tables_seq_read(const struct net *net);
611 struct net *net, in pol_lookup_func() argument
[all …]
A Dipv6_stubs.h28 struct dst_entry *(*ipv6_dst_lookup_flow)(struct net *net,
34 struct fib6_table *(*fib6_get_table)(struct net *net, u32 id);
35 int (*fib6_lookup)(struct net *net, int oif, struct flowi6 *fl6,
37 int (*fib6_table_lookup)(struct net *net, struct fib6_table *table,
40 void (*fib6_select_path)(const struct net *net, struct fib6_result *res,
47 int (*fib6_nh_init)(struct net *net, struct fib6_nh *fib6_nh,
52 void (*fib6_update_sernum)(struct net *net, struct fib6_info *rt);
53 int (*ip6_del_rt)(struct net *net, struct fib6_info *rt, bool skip_notify);
54 void (*fib6_rt_update)(struct net *net, struct fib6_info *rt,
85 struct sock *(*udp6_lib_lookup)(const struct net *net,
[all …]
A Dl3mdev.h21 typedef int (*lookup_by_table_id_t)(struct net *net, u32 table_d);
59 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
76 void l3mdev_update_flow(struct net *net, struct flowi *fl);
133 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
135 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
145 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
157 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument
259 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
278 static inline u32 l3mdev_fib_table_by_index(struct net *net, int ifindex) in l3mdev_fib_table_by_index() argument
339 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl, in l3mdev_fib_rule_match() argument
[all …]
A Dfib_notifier.h31 unsigned int (*fib_seq_read)(const 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);
A Dip6_route.h81 struct dst_entry *ip6_route_input_lookup(struct net *net,
89 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument
106 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
116 int ipv6_route_ioctl(struct net *net, unsigned int cmd,
121 int ip6_ins_rt(struct net *net, struct fib6_info *f6i);
162 void fib6_force_start_gc(struct net *net);
175 struct fib6_info *rt6_get_dflt_router(struct net *net,
178 struct fib6_info *rt6_add_dflt_router(struct net *net,
184 void rt6_purge_dflt_routers(struct net *net);
202 struct net *net; member
[all …]
A Dinet6_hashtables.h43 struct sock *__inet6_lookup_established(const struct net *net,
51 typedef u32 (inet6_ehashfn_t)(const struct net *net,
59 struct sock *inet6_lookup_reuseport(const struct net *net, struct sock *sk,
67 struct sock *inet6_lookup_listener(const struct net *net,
76 struct sock *inet6_lookup_run_sk_lookup(const struct net *net,
85 static inline struct sock *__inet6_lookup(const struct net *net, in __inet6_lookup() argument
107 struct sock *inet6_steal_sock(struct net *net, struct sk_buff *skb, int doff, in inet6_steal_sock() argument
153 struct net *net = skb_dst_dev_net_rcu(skb); in __inet6_lookup_skb() local
170 struct sock *inet6_lookup(const struct net *net, struct inet_hashinfo *hashinfo,
178 static inline bool inet6_match(const struct net *net, const struct sock *sk, in inet6_match() argument
[all …]
/include/linux/
A Drtnetlink.h101 void __rtnl_net_lock(struct net *net);
102 void __rtnl_net_unlock(struct net *net);
103 void rtnl_net_lock(struct net *net);
104 void rtnl_net_unlock(struct net *net);
105 int rtnl_net_trylock(struct net *net);
106 int rtnl_net_lock_killable(struct net *net);
109 bool rtnl_net_is_locked(struct net *net);
116 bool lockdep_rtnl_net_is_held(struct net *net);
128 static inline void rtnl_net_lock(struct net *net) in rtnl_net_lock() argument
133 static inline void rtnl_net_unlock(struct net *net) in rtnl_net_unlock() argument
[all …]
A Dnetfilter_ipv6.h43 int (*chk_addr)(struct net *net, const struct in6_addr *addr,
45 int (*route_me_harder)(struct net *net, struct sock *sk, struct sk_buff *skb);
46 int (*dev_get_saddr)(struct net *net, const struct net_device *dev,
49 int (*route)(struct net *net, struct dst_entry **dst, struct flowi *fl,
57 int (*fragment)(struct net *net, struct sock *sk, struct sk_buff *skb,
61 int (*br_fragment)(struct net *net, struct sock *sk,
79 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument
96 int __nf_ip6_route(struct net *net, struct dst_entry **dst,
99 static inline int nf_ip6_route(struct net *net, struct dst_entry **dst, in nf_ip6_route() argument
119 int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
[all …]
A 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()
A Dnfslocalio.h35 struct net __rcu *net; /* nfsd's network namespace */ member
45 struct net *, struct auth_domain *, struct module *);
56 bool (*nfsd_net_try_get)(struct net *);
57 void (*nfsd_net_put)(struct net *);
58 struct nfsd_file *(*nfsd_open_local_fh)(struct net *,
79 static inline void nfs_to_nfsd_net_put(struct net *net) in nfs_to_nfsd_net_put() argument
87 nfs_to->nfsd_net_put(net); in nfs_to_nfsd_net_put()
98 struct net *net; in nfs_to_nfsd_file_put_local() local
100 net = nfs_to->nfsd_file_put_local(localio); in nfs_to_nfsd_file_put_local()
102 if (net) in nfs_to_nfsd_file_put_local()
[all …]
A Dnetfilter.h84 struct net *net; member
167 struct net *net, in nf_hook_state_init() argument
175 p->net = net; in nf_hook_state_init()
199 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
201 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
227 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument
375 int nf_route(struct net *net, struct dst_entry **dst, struct flowi *fl,
418 NF_HOOK(uint8_t pf, unsigned int hook, struct net *net, struct sock *sk, in NF_HOOK() argument
470 int (*update)(struct net *net, struct sk_buff *skb);
498 int (*enable)(struct net *net);
[all …]
/include/linux/sunrpc/
A Dstats.h42 struct net;
44 int rpc_proc_init(struct net *);
45 void rpc_proc_exit(struct net *);
47 void rpc_proc_unregister(struct net *,const char *);
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
65 static inline void rpc_proc_unregister(struct net *net, const char *p) {} in rpc_proc_unregister() argument
68 static inline struct proc_dir_entry *svc_proc_register(struct net *net, struct svc_stat *s, in svc_proc_register() argument
[all …]
/include/net/netfilter/
A Dnf_synproxy.h30 static inline struct synproxy_net *synproxy_pernet(struct net *net) in synproxy_pernet() argument
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);
84 nf_synproxy_ipv6_init(struct synproxy_net *snet, struct net *net) { return 0; } in nf_synproxy_ipv6_init() argument
[all …]
A Dnf_conntrack_l4proto.h51 struct net *net, void *data);
66 struct net *net,
71 struct net *net,
131 void nf_conntrack_generic_init_net(struct net *net);
132 void nf_conntrack_tcp_init_net(struct net *net);
133 void nf_conntrack_udp_init_net(struct net *net);
134 void nf_conntrack_gre_init_net(struct net *net);
135 void nf_conntrack_sctp_init_net(struct net *net);
136 void nf_conntrack_icmp_init_net(struct net *net);
137 void nf_conntrack_icmpv6_init_net(struct net *net);
[all …]
A Dnf_conntrack_ecache.h72 void nf_conntrack_register_notifier(struct net *net,
74 void nf_conntrack_unregister_notifier(struct net *net);
105 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
153 void nf_conntrack_ecache_work(struct net *net, enum nf_ct_ecache_state state);
155 void nf_conntrack_ecache_pernet_init(struct net *net);
156 void nf_conntrack_ecache_pernet_fini(struct net *net);
158 struct nf_conntrack_net_ecache *nf_conn_pernet_ecache(const struct net *net);
160 static inline bool nf_conntrack_ecache_dwork_pending(const struct net *net) in nf_conntrack_ecache_dwork_pending() argument
173 static inline void nf_conntrack_ecache_work(struct net *net, in nf_conntrack_ecache_work() argument
178 static inline void nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init() argument
[all …]
A Dnf_conntrack_count.h18 struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int keylen);
19 void nf_conncount_destroy(struct net *net, struct nf_conncount_data *data);
21 unsigned int nf_conncount_count(struct net *net,
27 int nf_conncount_add(struct net *net, struct nf_conncount_list *list,
33 bool nf_conncount_gc_list(struct net *net,
A Dnf_conntrack_labels.h40 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
42 if (atomic_read(&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
A 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);
A Dnf_log.h39 typedef void nf_logfn(struct net *net,
65 int nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger);
66 void nf_log_unset(struct net *net, const struct nf_logger *logger);
68 int nf_log_bind_pf(struct net *net, u_int8_t pf,
70 void nf_log_unbind_pf(struct net *net, u_int8_t pf);
80 void nf_log_packet(struct net *net,
90 void nf_log_trace(struct net *net,
/include/net/phonet/
A 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);
41 void phonet_address_notify(struct net *net, int event, u32 ifindex, u8 addr);
45 void rtm_phonet_notify(struct net *net, int event, u32 ifindex, u8 dst);
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/linux/netfilter/
A Dnfnetlink.h11 struct net *net; member
45 int (*commit)(struct net *net, struct sk_buff *skb);
46 int (*abort)(struct net *net, struct sk_buff *skb,
48 bool (*valid_genid)(struct net *net, u32 genid);
54 int nfnetlink_has_listeners(struct net *net, unsigned int group);
55 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
57 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
58 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid);
59 void nfnetlink_broadcast(struct net *net, struct sk_buff *skb, __u32 portid,

Completed in 38 milliseconds

12345678