Home
last modified time | relevance | path

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

12345678

/include/net/
Dnet_namespace.h54 struct net { struct
189 extern struct net init_net; argument
192 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
193 struct net *old_net);
195 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid);
201 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns()
202 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns()
209 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument
222 struct net *get_net_ns_by_pid(pid_t pid);
223 struct net *get_net_ns_by_fd(int 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
Dip_fib.h135 struct net *fib_net;
199 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc,
201 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res);
222 int call_fib4_notifier(struct notifier_block *nb, struct net *net,
225 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type,
228 int __net_init fib4_notifier_init(struct net *net);
229 void __net_exit fib4_notifier_exit(struct net *net);
231 void fib_info_notify_update(struct net *net, struct nl_info *info);
232 void fib_notify(struct net *net, struct notifier_block *nb);
258 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *,
[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,
50 void (*fib6_update_sernum)(struct net *net, struct fib6_info *rt);
51 int (*ip6_del_rt)(struct net *net, struct fib6_info *rt);
52 void (*fib6_rt_update)(struct net *net, struct fib6_info *rt,
67 struct sock *(*udp6_lib_lookup)(struct net *net,
Dfib_notifier.h11 struct net *net; member
32 unsigned int (*fib_seq_read)(struct net *net);
33 int (*fib_dump)(struct net *net, struct notifier_block *nb);
38 int call_fib_notifier(struct notifier_block *nb, struct net *net,
41 int call_fib_notifiers(struct net *net, enum fib_event_type event_type,
47 fib_notifier_ops_register(const struct fib_notifier_ops *tmpl, struct net *net);
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);
Dl3mdev.h40 int l3mdev_fib_rule_match(struct net *net, struct flowi *fl,
43 void l3mdev_update_flow(struct net *net, struct flowi *fl);
57 static inline int l3mdev_master_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_ifindex_by_index() argument
65 dev = dev_get_by_index_rcu(net, ifindex); in l3mdev_master_ifindex_by_index()
100 int l3mdev_master_upper_ifindex_by_index_rcu(struct net *net, int ifindex);
102 int l3mdev_master_upper_ifindex_by_index(struct net *net, int ifindex) in l3mdev_master_upper_ifindex_by_index() argument
105 ifindex = l3mdev_master_upper_ifindex_by_index_rcu(net, ifindex); in l3mdev_master_upper_ifindex_by_index()
112 u32 l3mdev_fib_table_by_index(struct net *net, int ifindex);
124 static inline bool netif_index_is_l3_master(struct net *net, int ifindex) in netif_index_is_l3_master() argument
134 dev = dev_get_by_index_rcu(net, ifindex); in netif_index_is_l3_master()
[all …]
Dip6_route.h82 struct dst_entry *ip6_route_input_lookup(struct net *net,
87 struct dst_entry *ip6_route_output_flags_noref(struct net *net,
91 struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk,
94 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument
98 return ip6_route_output_flags(net, sk, fl6, 0); in ip6_route_output()
111 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6,
113 struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
121 int ipv6_route_ioctl(struct net *net, unsigned int cmd, void __user *arg);
125 int ip6_ins_rt(struct net *net, struct fib6_info *f6i);
126 int ip6_del_rt(struct net *net, struct fib6_info *f6i);
[all …]
Dicmp.h29 #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
37 struct net;
49 void icmp_out_count(struct net *net, unsigned char type);
Dip6_fib.h373 typedef struct rt6_info *(*pol_lookup_t)(struct net *,
388 struct fib6_table *fib6_get_table(struct net *net, u32 id);
389 struct fib6_table *fib6_new_table(struct net *net, u32 id);
390 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
397 int fib6_lookup(struct net *net, int oif, struct flowi6 *fl6,
401 int fib6_table_lookup(struct net *net, struct fib6_table *table,
405 void fib6_select_path(const struct net *net, struct fib6_result *res,
417 void fib6_clean_all(struct net *net, int (*func)(struct fib6_info *, void *arg),
419 void fib6_clean_all_skip_notify(struct net *net,
446 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh,
[all …]
/include/linux/sunrpc/
Dstats.h42 struct net;
44 int rpc_proc_init(struct net *);
45 void rpc_proc_exit(struct net *);
47 static inline int rpc_proc_init(struct net *net) in rpc_proc_init() argument
52 static inline void rpc_proc_exit(struct net *net) in rpc_proc_exit() argument
62 struct proc_dir_entry * rpc_proc_register(struct net *,struct rpc_stat *);
63 void rpc_proc_unregister(struct net *,const char *);
65 struct proc_dir_entry * svc_proc_register(struct net *, struct svc_stat *,
67 void svc_proc_unregister(struct net *, const char *);
73 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_conntrack_l4proto.h50 struct net *net, void *data);
65 struct net *net,
70 struct net *net,
135 void nf_conntrack_generic_init_net(struct net *net);
136 void nf_conntrack_tcp_init_net(struct net *net);
137 void nf_conntrack_udp_init_net(struct net *net);
138 void nf_conntrack_gre_init_net(struct net *net);
139 void nf_conntrack_dccp_init_net(struct net *net);
140 void nf_conntrack_sctp_init_net(struct net *net);
141 void nf_conntrack_icmp_init_net(struct net *net);
[all …]
Dnf_conntrack_ecache.h45 struct net *net = nf_ct_net(ct); in nf_ct_ecache_ext_add() local
48 if (!ctmask && !expmask && net->ct.sysctl_events) { in nf_ct_ecache_ext_add()
79 int nf_conntrack_register_notifier(struct net *net,
81 void nf_conntrack_unregister_notifier(struct net *net,
108 struct net *net = nf_ct_net(ct); in nf_conntrack_event_cache() local
111 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_cache()
127 const struct net *net = nf_ct_net(ct); in nf_conntrack_event_report() local
129 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event_report()
142 const struct net *net = nf_ct_net(ct); in nf_conntrack_event() local
144 if (!rcu_access_pointer(net->ct.nf_conntrack_event_cb)) in nf_conntrack_event()
[all …]
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_labels.h32 struct net *net = nf_ct_net(ct); in nf_ct_labels_ext_add() local
34 if (net->ct.labels_used == 0) in nf_ct_labels_ext_add()
49 int nf_connlabels_get(struct net *net, unsigned int bit);
50 void nf_connlabels_put(struct net *net);
54 static inline int nf_connlabels_get(struct net *net, unsigned int bit) { return 0; } in nf_connlabels_get() argument
55 static inline void nf_connlabels_put(struct net *net) {} in nf_connlabels_put() argument
Dnf_conntrack_count.h17 struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int family,
19 void nf_conncount_destroy(struct net *net, unsigned int family,
22 unsigned int nf_conncount_count(struct net *net,
28 int nf_conncount_add(struct net *net, struct nf_conncount_list *list,
34 bool nf_conncount_gc_list(struct net *net,
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()
68 void nf_conntrack_acct_pernet_init(struct net *net);
Dnf_nat.h71 int nf_nat_register_fn(struct net *net, u8 pf, const struct nf_hook_ops *ops,
73 void nf_nat_unregister_fn(struct net *net, u8 pf, const struct nf_hook_ops *ops,
94 int nf_nat_ipv4_register_fn(struct net *net, const struct nf_hook_ops *ops);
95 void nf_nat_ipv4_unregister_fn(struct net *net, const struct nf_hook_ops *ops);
97 int nf_nat_ipv6_register_fn(struct net *net, const struct nf_hook_ops *ops);
98 void nf_nat_ipv6_unregister_fn(struct net *net, const struct nf_hook_ops *ops);
100 int nf_nat_inet_register_fn(struct net *net, const struct nf_hook_ops *ops);
101 void nf_nat_inet_unregister_fn(struct net *net, const struct nf_hook_ops *ops);
107 int nf_xfrm_me_harder(struct net *n, struct sk_buff *s, unsigned int family);
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);
78 void nf_log_packet(struct net *net,
88 void nf_log_trace(struct net *net,
109 void nf_log_dump_sk_uid_gid(struct net *net, struct nf_log_buf *m,
117 void nf_log_l2packet(struct net *net, u_int8_t pf,
/include/linux/netfilter/
Dnfnetlink.h11 int (*call)(struct net *net, struct sock *nl, struct sk_buff *skb,
15 int (*call_rcu)(struct net *net, struct sock *nl, struct sk_buff *skb,
19 int (*call_batch)(struct net *net, struct sock *nl, struct sk_buff *skb,
33 int (*commit)(struct net *net, struct sk_buff *skb);
34 int (*abort)(struct net *net, struct sk_buff *skb, bool autoload);
35 void (*cleanup)(struct net *net);
36 bool (*valid_genid)(struct net *net, u32 genid);
42 int nfnetlink_has_listeners(struct net *net, unsigned int group);
43 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid,
45 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error);
[all …]
/include/linux/
Dnetfilter_ipv6.h43 int (*chk_addr)(struct net *net, const struct in6_addr *addr,
45 int (*route_me_harder)(struct net *net, 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,
58 int (*output)(struct net *, struct sock *, struct sk_buff *));
61 int (*br_defrag)(struct net *net, struct sk_buff *skb, u32 user);
62 int (*br_fragment)(struct net *net, struct sock *sk,
65 int (*output)(struct net *, struct sock *sk,
80 static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr, in nf_ipv6_chk_addr() argument
[all …]
Dseq_file_net.h7 struct net;
8 extern struct net init_net;
12 struct net *net; member
16 static inline struct net *seq_file_net(struct seq_file *seq) in seq_file_net()
19 return ((struct seq_net_private *)seq->private)->net; in seq_file_net()
29 static inline struct net *seq_file_single_net(struct seq_file *seq) in seq_file_single_net()
32 return (struct net *)seq->private; in seq_file_single_net()
Dmroute_base.h50 struct net *net, in mr_call_vif_notifier() argument
59 .net = net, in mr_call_vif_notifier()
67 return call_fib_notifier(nb, net, event_type, &info.info); in mr_call_vif_notifier()
70 static inline int mr_call_vif_notifiers(struct net *net, in mr_call_vif_notifiers() argument
80 .net = net, in mr_call_vif_notifiers()
90 return call_fib_notifiers(net, event_type, &info.info); in mr_call_vif_notifiers()
176 struct net *net, in mr_call_mfc_notifier() argument
184 .net = net, in mr_call_mfc_notifier()
190 return call_fib_notifier(nb, net, event_type, &info.info); in mr_call_mfc_notifier()
193 static inline int mr_call_mfc_notifiers(struct net *net, in mr_call_mfc_notifiers() argument
[all …]
Dnetfilter.h72 struct net *net; member
73 int (*okfn)(struct net *, struct sock *, struct sk_buff *);
144 struct net *net, in nf_hook_state_init() argument
145 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument
152 p->net = net; in nf_hook_state_init()
183 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops);
184 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops);
185 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg,
187 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg,
209 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument
[all …]
/include/net/phonet/
Dpn_dev.h18 struct phonet_device_list *phonet_device_list(struct net *net);
30 struct net_device *phonet_device_get(struct net *net);
35 int phonet_address_lookup(struct net *net, u8 addr);
41 struct net_device *phonet_route_get_rcu(struct net *net, u8 daddr);
42 struct net_device *phonet_route_output(struct net *net, u8 daddr);

12345678