| /include/net/ |
| D | net_namespace.h | 61 struct net { struct 197 extern struct net init_net; argument 200 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns, 201 struct net *old_net); 203 void net_ns_get_ownership(const struct net *net, kuid_t *uid, kgid_t *gid); 208 struct net *get_net_ns_by_fd(int fd); 212 static inline struct net *copy_net_ns(unsigned long flags, in copy_net_ns() 213 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() 220 static inline void net_ns_get_ownership(const struct net *net, in net_ns_get_ownership() argument 234 static inline struct net *get_net_ns_by_fd(int fd) in get_net_ns_by_fd() [all …]
|
| D | wext.h | 7 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
|
| D | seg6_hmac.h | 45 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
|
| D | ip6_fib.h | 96 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument 101 static inline void fib6_routes_require_src_inc(struct net *net) {} in fib6_routes_require_src_inc() argument 102 static inline void fib6_routes_require_src_dec(struct net *net) {} in fib6_routes_require_src_dec() argument 106 static inline bool fib6_routes_require_src(const struct net *net) in fib6_routes_require_src() argument 108 return net->ipv6.fib6_routes_require_src > 0; in fib6_routes_require_src() 111 static inline void fib6_routes_require_src_inc(struct net *net) in fib6_routes_require_src_inc() argument 113 net->ipv6.fib6_routes_require_src++; in fib6_routes_require_src_inc() 116 static inline void fib6_routes_require_src_dec(struct net *net) in fib6_routes_require_src_dec() argument 118 net->ipv6.fib6_routes_require_src--; in fib6_routes_require_src_dec() 428 typedef struct rt6_info *(*pol_lookup_t)(struct net *, [all …]
|
| D | l3mdev.h | 21 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 …]
|
| D | ip_fib.h | 140 struct net *fib_net; 206 __be32 fib_info_update_nhc_saddr(struct net *net, struct fib_nh_common *nhc, 208 __be32 fib_result_prefsrc(struct net *net, struct fib_result *res); 245 int call_fib4_notifiers(struct net *net, enum fib_event_type event_type, 248 int __net_init fib4_notifier_init(struct net *net); 249 void __net_exit fib4_notifier_exit(struct net *net); 251 void fib_info_notify_update(struct net *net, struct nl_info *info); 252 int fib_notify(struct net *net, struct notifier_block *nb, 279 int fib_table_insert(struct net *, struct fib_table *, struct fib_config *, 281 int fib_table_delete(struct net *, struct fib_table *, struct fib_config *, [all …]
|
| D | ipv6_stubs.h | 28 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, 72 int (*ipv6_fragment)(struct net *net, struct sock *sk, struct sk_buff *skb, [all …]
|
| D | fib_notifier.h | 31 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);
|
| D | ip6_route.h | 81 struct dst_entry *ip6_route_input_lookup(struct net *net, 86 struct dst_entry *ip6_route_output_flags(struct net *net, const struct sock *sk, 89 static inline struct dst_entry *ip6_route_output(struct net *net, in ip6_route_output() argument 93 return ip6_route_output_flags(net, sk, fl6, 0); in ip6_route_output() 106 struct dst_entry *ip6_route_lookup(struct net *net, struct flowi6 *fl6, 108 struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, 116 int ipv6_route_ioctl(struct net *net, unsigned int cmd, 121 int ip6_ins_rt(struct net *net, struct fib6_info *f6i); 122 int ip6_del_rt(struct net *net, struct fib6_info *f6i, bool skip_notify); 128 static inline int ip6_route_get_saddr(struct net *net, struct fib6_info *f6i, in ip6_route_get_saddr() argument [all …]
|
| D | inet6_hashtables.h | 43 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 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/ |
| D | stats.h | 42 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/ |
| D | nf_synproxy.h | 30 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 …]
|
| D | nf_conntrack_l4proto.h | 51 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 …]
|
| D | nf_conntrack_ecache.h | 68 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 …]
|
| D | nf_conntrack_count.h | 18 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,
|
| D | nf_conntrack_labels.h | 40 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
|
| D | nf_conntrack_acct.h | 33 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);
|
| D | nf_log.h | 39 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/ |
| D | netfilter_ipv6.h | 44 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 …]
|
| D | nfslocalio.h | 31 struct net __rcu *net; /* nfsd's network namespace */ member 39 struct net *, struct auth_domain *, struct module *); 45 nfsd_open_local_fh(struct net *, struct auth_domain *, struct rpc_clnt *, 50 bool (*nfsd_serv_try_get)(struct net *); 51 void (*nfsd_serv_put)(struct net *); 52 struct nfsd_file *(*nfsd_open_local_fh)(struct net *, 58 struct net *(*nfsd_file_put_local)(struct nfsd_file *); 69 static inline void nfs_to_nfsd_net_put(struct net *net) in nfs_to_nfsd_net_put() argument 77 nfs_to->nfsd_serv_put(net); in nfs_to_nfsd_net_put() 88 struct net *net = nfs_to->nfsd_file_put_local(localio); in nfs_to_nfsd_file_put_local() local [all …]
|
| D | seq_file_net.h | 8 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()
|
| D | netfilter.h | 85 struct net *net; member 86 int (*okfn)(struct net *, struct sock *, struct sk_buff *); 164 struct net *net, in nf_hook_state_init() argument 165 int (*okfn)(struct net *, struct sock *, struct sk_buff *)) in nf_hook_state_init() argument 172 p->net = net; in nf_hook_state_init() 198 int nf_register_net_hook(struct net *net, const struct nf_hook_ops *ops); 199 void nf_unregister_net_hook(struct net *net, const struct nf_hook_ops *ops); 200 int nf_register_net_hooks(struct net *net, const struct nf_hook_ops *reg, 202 void nf_unregister_net_hooks(struct net *net, const struct nf_hook_ops *reg, 226 static inline int nf_hook(u_int8_t pf, unsigned int hook, struct net *net, in nf_hook() argument [all …]
|
| /include/linux/netfilter/ |
| D | nfnetlink.h | 12 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/ |
| D | pn_dev.h | 16 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/ |
| D | nf_defrag_ipv6.h | 8 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);
|