Home
last modified time | relevance | path

Searched defs:net (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/net/core/
Dnet_namespace.c57 static int net_assign_generic(struct net *net, int id, void *data) in net_assign_generic()
94 static int ops_init(const struct pernet_operations *ops, struct net *net) in ops_init()
121 static void ops_free(const struct pernet_operations *ops, struct net *net) in ops_free()
132 struct net *net; in ops_exit_list() local
144 struct net *net; in ops_free_list() local
151 static int alloc_netid(struct net *net, struct net *peer, int reqid) in alloc_netid()
171 static int net_eq_idr(int id, void *net, void *peer) in net_eq_idr()
178 static int __peernet2id(struct net *net, struct net *peer, bool alloc) in __peernet2id()
199 int peernet2id(struct net *net, struct net *peer) in peernet2id()
206 struct net *get_net_ns_by_id(struct net *net, int id) in get_net_ns_by_id()
[all …]
Ddev_ioctl.c20 static int dev_ifname(struct net *net, struct ifreq __user *arg) in dev_ifname()
67 static int dev_ifconf(struct net *net, char __user *arg) in dev_ifconf()
121 static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc_locked()
239 static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) in dev_ifsioc()
355 void dev_load(struct net *net, const char *name) in dev_load()
392 int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg) in dev_ioctl()
/net/netfilter/
Dnf_conntrack_ecache.c36 struct net *net = nf_ct_net(ct); in nf_ct_deliver_cached_events() local
86 int nf_conntrack_register_notifier(struct net *net, in nf_conntrack_register_notifier()
108 void nf_conntrack_unregister_notifier(struct net *net, in nf_conntrack_unregister_notifier()
122 int nf_ct_expect_register_notifier(struct net *net, in nf_ct_expect_register_notifier()
144 void nf_ct_expect_unregister_notifier(struct net *net, in nf_ct_expect_unregister_notifier()
189 static int nf_conntrack_event_init_sysctl(struct net *net) in nf_conntrack_event_init_sysctl()
219 static void nf_conntrack_event_fini_sysctl(struct net *net) in nf_conntrack_event_fini_sysctl()
228 static int nf_conntrack_event_init_sysctl(struct net *net) in nf_conntrack_event_init_sysctl()
233 static void nf_conntrack_event_fini_sysctl(struct net *net) in nf_conntrack_event_fini_sysctl()
238 int nf_conntrack_ecache_pernet_init(struct net *net) in nf_conntrack_ecache_pernet_init()
[all …]
Dnf_log.c34 void nf_log_set(struct net *net, u_int8_t pf, const struct nf_logger *logger) in nf_log_set()
51 void nf_log_unset(struct net *net, const struct nf_logger *logger) in nf_log_unset()
106 int nf_log_bind_pf(struct net *net, u_int8_t pf, in nf_log_bind_pf()
122 void nf_log_unbind_pf(struct net *net, u_int8_t pf) in nf_log_unbind_pf()
132 void nf_log_packet(struct net *net, in nf_log_packet()
160 struct net *net = seq_file_net(seq); in seq_start() local
172 struct net *net = seq_file_net(s); in seq_next() local
193 struct net *net = seq_file_net(s); in seq_show() local
256 struct net *net = current->nsproxy->net_ns; in nf_log_proc_dostring() local
291 static int netfilter_log_sysctl_init(struct net *net) in netfilter_log_sysctl_init()
[all …]
Dnf_conntrack_timestamp.c43 static int nf_conntrack_tstamp_init_sysctl(struct net *net) in nf_conntrack_tstamp_init_sysctl()
72 static void nf_conntrack_tstamp_fini_sysctl(struct net *net) in nf_conntrack_tstamp_fini_sysctl()
81 static int nf_conntrack_tstamp_init_sysctl(struct net *net) in nf_conntrack_tstamp_init_sysctl()
86 static void nf_conntrack_tstamp_fini_sysctl(struct net *net) in nf_conntrack_tstamp_fini_sysctl()
91 int nf_conntrack_tstamp_pernet_init(struct net *net) in nf_conntrack_tstamp_pernet_init()
97 void nf_conntrack_tstamp_pernet_fini(struct net *net) in nf_conntrack_tstamp_pernet_fini()
Dnf_conntrack_acct.c61 static int nf_conntrack_acct_init_sysctl(struct net *net) in nf_conntrack_acct_init_sysctl()
90 static void nf_conntrack_acct_fini_sysctl(struct net *net) in nf_conntrack_acct_fini_sysctl()
99 static int nf_conntrack_acct_init_sysctl(struct net *net) in nf_conntrack_acct_init_sysctl()
104 static void nf_conntrack_acct_fini_sysctl(struct net *net) in nf_conntrack_acct_fini_sysctl()
109 int nf_conntrack_acct_pernet_init(struct net *net) in nf_conntrack_acct_pernet_init()
115 void nf_conntrack_acct_pernet_fini(struct net *net) in nf_conntrack_acct_pernet_fini()
Dnf_conntrack_proto.c39 nf_ct_register_sysctl(struct net *net, in nf_ct_register_sysctl()
168 static struct nf_ip_net *nf_ct_l3proto_net(struct net *net, in nf_ct_l3proto_net()
177 static int nf_ct_l3proto_register_sysctl(struct net *net, in nf_ct_l3proto_register_sysctl()
201 static void nf_ct_l3proto_unregister_sysctl(struct net *net, in nf_ct_l3proto_unregister_sysctl()
247 int nf_ct_l3proto_pernet_register(struct net *net, in nf_ct_l3proto_pernet_register()
278 void nf_ct_l3proto_pernet_unregister(struct net *net, in nf_ct_l3proto_pernet_unregister()
288 static struct nf_proto_net *nf_ct_l4proto_net(struct net *net, in nf_ct_l4proto_net()
302 int nf_ct_l4proto_register_sysctl(struct net *net, in nf_ct_l4proto_register_sysctl()
346 void nf_ct_l4proto_unregister_sysctl(struct net *net, in nf_ct_l4proto_unregister_sysctl()
423 int nf_ct_l4proto_pernet_register(struct net *net, in nf_ct_l4proto_pernet_register()
[all …]
Dnf_conntrack_standalone.c56 struct net *net = seq_file_net(seq); in ct_get_first() local
73 struct net *net = seq_file_net(seq); in ct_get_next() local
275 struct net *net = seq_file_net(seq); in ct_cpu_seq_start() local
293 struct net *net = seq_file_net(seq); in ct_cpu_seq_next() local
312 struct net *net = seq_file_net(seq); in ct_cpu_seq_show() local
366 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
386 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
392 static int nf_conntrack_standalone_init_proc(struct net *net) in nf_conntrack_standalone_init_proc()
397 static void nf_conntrack_standalone_fini_proc(struct net *net) in nf_conntrack_standalone_fini_proc()
472 static int nf_conntrack_standalone_init_sysctl(struct net *net) in nf_conntrack_standalone_init_sysctl()
[all …]
Dnf_conntrack_core.c101 static u32 hash_bucket(u32 hash, const struct net *net) in hash_bucket()
112 static inline u_int32_t hash_conntrack(const struct net *net, u16 zone, in hash_conntrack()
203 struct net *net = nf_ct_net(ct); in destroy_conntrack() local
243 struct net *net = nf_ct_net(ct); in nf_ct_delete_from_lists() local
261 struct net *net = nf_ct_net(ct); in death_by_event() local
280 struct net *net = nf_ct_net(ct); in nf_ct_dying_timeout() local
322 ____nf_conntrack_find(struct net *net, u16 zone, in ____nf_conntrack_find()
358 __nf_conntrack_find(struct net *net, u16 zone, in __nf_conntrack_find()
368 __nf_conntrack_find_get(struct net *net, u16 zone, in __nf_conntrack_find_get()
396 nf_conntrack_find_get(struct net *net, u16 zone, in nf_conntrack_find_get()
[all …]
Dnf_conntrack_proto_gre.c64 static inline struct netns_proto_gre *gre_pernet(struct net *net) in gre_pernet()
69 void nf_ct_gre_keymap_flush(struct net *net) in nf_ct_gre_keymap_flush()
94 static __be16 gre_keymap_lookup(struct net *net, struct nf_conntrack_tuple *t) in gre_keymap_lookup()
119 struct net *net = nf_ct_net(ct); in nf_ct_gre_keymap_add() local
160 struct net *net = nf_ct_net(ct); in nf_ct_gre_keymap_destroy() local
196 struct net *net = dev_net(skb->dev ? skb->dev : skb_dst(skb)->dev); in gre_pkt_to_tuple() local
246 static unsigned int *gre_get_timeouts(struct net *net) in gre_get_timeouts()
309 struct net *net, void *data) in gre_timeout_nlattr_to_obj()
352 static int gre_init_net(struct net *net, u_int16_t proto) in gre_init_net()
398 static int proto_gre_net_init(struct net *net) in proto_gre_net_init()
[all …]
Dnfnetlink.c109 int nfnetlink_has_listeners(struct net *net, unsigned int group) in nfnetlink_has_listeners()
115 struct sk_buff *nfnetlink_alloc_skb(struct net *net, unsigned int size, in nfnetlink_alloc_skb()
122 int nfnetlink_send(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_send()
129 int nfnetlink_set_err(struct net *net, u32 portid, u32 group, int error) in nfnetlink_set_err()
135 int nfnetlink_unicast(struct sk_buff *skb, struct net *net, u32 portid, in nfnetlink_unicast()
145 struct net *net = sock_net(skb->sk); in nfnetlink_rcv_msg() local
242 static int __net_init nfnetlink_net_init(struct net *net) in nfnetlink_net_init()
263 struct net *net; in nfnetlink_net_exit_batch() local
/net/sctp/
Dsm_statefuns.c221 sctp_disposition_t sctp_sf_do_4_C(struct net *net, in sctp_sf_do_4_C()
307 sctp_disposition_t sctp_sf_do_5_1B_init(struct net *net, in sctp_sf_do_5_1B_init()
503 sctp_disposition_t sctp_sf_do_5_1C_ack(struct net *net, in sctp_sf_do_5_1C_ack()
653 sctp_disposition_t sctp_sf_do_5_1D_ce(struct net *net, in sctp_sf_do_5_1D_ce()
877 sctp_disposition_t sctp_sf_do_5_1E_ca(struct net *net, in sctp_sf_do_5_1E_ca()
980 sctp_disposition_t sctp_sf_sendbeat_8_3(struct net *net, in sctp_sf_sendbeat_8_3()
1051 sctp_disposition_t sctp_sf_beat_8_3(struct net *net, in sctp_sf_beat_8_3()
1125 sctp_disposition_t sctp_sf_backbeat_8_3(struct net *net, in sctp_sf_backbeat_8_3()
1202 static int sctp_sf_send_restart_abort(struct net *net, union sctp_addr *ssa, in sctp_sf_send_restart_abort()
1271 struct net *net = sock_net(new_asoc->base.sk); in sctp_sf_check_restart_addrs() local
[all …]
Dinput.c86 static inline int sctp_rcv_checksum(struct net *net, struct sk_buff *skb) in sctp_rcv_checksum()
135 struct net *net = dev_net(skb->dev); in sctp_rcv() local
469 struct net *net = sock_net(sk); in sctp_icmp_proto_unreachable() local
482 struct sock *sctp_err_lookup(struct net *net, int family, struct sk_buff *skb, in sctp_err_lookup()
594 struct net *net = dev_net(skb->dev); in sctp_v4_err() local
732 struct net *net = sock_net(ep->base.sk); in __sctp_hash_endpoint() local
757 struct net *net = sock_net(ep->base.sk); in __sctp_unhash_endpoint() local
781 static struct sctp_endpoint *__sctp_rcv_lookup_endpoint(struct net *net, in __sctp_rcv_lookup_endpoint()
809 struct net *net = sock_net(asoc->base.sk); in __sctp_hash_established() local
840 struct net *net = sock_net(asoc->base.sk); in __sctp_unhash_established() local
[all …]
/net/ipv4/
Dfib_frontend.c51 static int __net_init fib4_rules_init(struct net *net) in fib4_rules_init()
75 struct fib_table *fib_new_table(struct net *net, u32 id) in fib_new_table()
112 struct fib_table *fib_get_table(struct net *net, u32 id) in fib_get_table()
135 static void fib_flush(struct net *net) in fib_flush()
156 static inline unsigned int __inet_dev_addr_type(struct net *net, in __inet_dev_addr_type()
183 unsigned int inet_addr_type(struct net *net, __be32 addr) in inet_addr_type()
189 unsigned int inet_dev_addr_type(struct net *net, const struct net_device *dev, in inet_dev_addr_type()
203 struct net *net; in fib_compute_spec_dst() local
249 struct net *net; in __fib_validate_source() local
348 static int rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt, in rtentry_to_fib_config()
[all …]
Dipmr.c77 struct net *net; member
143 #define ipmr_for_each_table(mrt, net) \ argument
146 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table()
157 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup()
242 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init()
274 static void __net_exit ipmr_rules_exit(struct net *net) in ipmr_rules_exit()
285 #define ipmr_for_each_table(mrt, net) \ argument
288 static struct mr_table *ipmr_get_table(struct net *net, u32 id) in ipmr_get_table()
293 static int ipmr_fib_lookup(struct net *net, struct flowi4 *flp4, in ipmr_fib_lookup()
300 static int __net_init ipmr_rules_init(struct net *net) in ipmr_rules_init()
[all …]
Dip_fragment.c89 int ip_frag_nqueues(struct net *net) in ip_frag_nqueues()
94 int ip_frag_mem(struct net *net) in ip_frag_mem()
140 struct net *net = container_of(ipv4, struct net, ipv4); in ip4_frag_init() local
182 static void ip_evictor(struct net *net) in ip_evictor()
197 struct net *net; in ip_expire() local
252 static inline struct ipq *ip_find(struct net *net, struct iphdr *iph, u32 user) in ip_find()
291 struct net *net; in ip_frag_too_far() local
520 struct net *net = container_of(qp->q.net, struct net, ipv4.frags); in ip_frag_reasm() local
651 struct net *net; in ip_defrag() local
760 static int __net_init ip4_frags_ns_ctl_register(struct net *net) in ip4_frags_ns_ctl_register()
[all …]
Dproc.c54 struct net *net = seq->private; in sockstat_seq_show() local
303 struct net *net = seq->private; in icmpmsg_put() local
325 struct net *net = seq->private; in icmp_put() local
355 struct net *net = seq->private; in snmp_seq_show() local
439 struct net *net = seq->private; in netstat_seq_show() local
479 static __net_init int ip_proc_init_net(struct net *net) in ip_proc_init_net()
499 static __net_exit void ip_proc_exit_net(struct net *net) in ip_proc_exit_net()
Dicmp.c206 static struct sock *icmp_sk(struct net *net) in icmp_sk()
211 static inline struct sock *icmp_xmit_lock(struct net *net) in icmp_xmit_lock()
238 static inline bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt, in icmpv4_xrlim_allow()
270 void icmp_out_count(struct net *net, unsigned char type) in icmp_out_count()
335 struct net *net = dev_net(rt->dst.dev); in icmp_reply() local
382 static struct rtable *icmp_route_lookup(struct net *net, in icmp_route_lookup()
498 struct net *net; in icmp_send() local
676 struct net *net; in icmp_unreach() local
793 struct net *net; in icmp_echo() local
861 struct net *net = dev_net(rt->dst.dev); in icmp_rcv() local
[all …]
/net/xfrm/
Dxfrm_sysctl.c6 static void __net_init __xfrm_sysctl_init(struct net *net) in __xfrm_sysctl_init()
43 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init()
72 void __net_exit xfrm_sysctl_fini(struct net *net) in xfrm_sysctl_fini()
81 int __net_init xfrm_sysctl_init(struct net *net) in xfrm_sysctl_init()
Dxfrm_policy.c119 static inline struct dst_entry *__xfrm_dst_lookup(struct net *net, int tos, in __xfrm_dst_lookup()
143 struct net *net = xs_net(x); in xfrm_dst_lookup() local
281 struct xfrm_policy *xfrm_policy_alloc(struct net *net, gfp_t gfp) in xfrm_policy_alloc()
350 static inline unsigned int idx_hash(struct net *net, u32 index) in idx_hash()
355 static struct hlist_head *policy_hash_bysel(struct net *net, in policy_hash_bysel()
367 static struct hlist_head *policy_hash_direct(struct net *net, in policy_hash_direct()
430 static void xfrm_bydst_resize(struct net *net, int dir) in xfrm_bydst_resize()
455 static void xfrm_byidx_resize(struct net *net, int total) in xfrm_byidx_resize()
480 static inline int xfrm_bydst_should_resize(struct net *net, int dir, int *total) in xfrm_bydst_should_resize()
495 static inline int xfrm_byidx_should_resize(struct net *net, int total) in xfrm_byidx_should_resize()
[all …]
/net/ipv6/
Dxfrm6_tunnel.c49 static inline struct xfrm6_tunnel_net *xfrm6_tunnel_pernet(struct net *net) in xfrm6_tunnel_pernet()
88 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup()
103 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup()
117 static int __xfrm6_tunnel_spi_check(struct net *net, u32 spi) in __xfrm6_tunnel_spi_check()
132 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi()
175 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi()
200 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_free_spi()
237 struct net *net = dev_net(skb->dev); in xfrm6_tunnel_rcv() local
301 struct net *net = xs_net(x); in xfrm6_tunnel_destroy() local
328 static int __net_init xfrm6_tunnel_net_init(struct net *net) in xfrm6_tunnel_net_init()
[all …]
Dreassembly.c131 void ip6_expire_frag_queue(struct net *net, struct frag_queue *fq, in ip6_expire_frag_queue()
173 struct net *net; in ip6_frag_expire() local
182 fq_find(struct net *net, __be32 id, const struct in6_addr *src, in fq_find()
212 struct net *net = dev_net(skb_dst(skb)->dev); in ip6_frag_queue() local
380 struct net *net = container_of(fq->q.net, struct net, ipv6.frags); in ip6_frag_reasm() local
524 struct net *net = dev_net(skb_dst(skb)->dev); in ipv6_frag_rcv() local
622 static int __net_init ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register()
656 static void __net_exit ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister()
680 static inline int ip6_frags_ns_sysctl_register(struct net *net) in ip6_frags_ns_sysctl_register()
685 static inline void ip6_frags_ns_sysctl_unregister(struct net *net) in ip6_frags_ns_sysctl_unregister()
[all …]
Dip6_fib.c65 struct net *net; member
170 static void fib6_link_table(struct net *net, struct fib6_table *tb) in fib6_link_table()
191 static struct fib6_table *fib6_alloc_table(struct net *net, u32 id) in fib6_alloc_table()
206 struct fib6_table *fib6_new_table(struct net *net, u32 id) in fib6_new_table()
223 struct fib6_table *fib6_get_table(struct net *net, u32 id) in fib6_get_table()
245 static void __net_init fib6_tables_init(struct net *net) in fib6_tables_init()
252 struct fib6_table *fib6_new_table(struct net *net, u32 id) in fib6_new_table()
257 struct fib6_table *fib6_get_table(struct net *net, u32 id) in fib6_get_table()
262 struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6, in fib6_rule_lookup()
268 static void __net_init fib6_tables_init(struct net *net) in fib6_tables_init()
[all …]
Dip6mr.c60 struct net *net; member
127 #define ip6mr_for_each_table(mrt, net) \ argument
130 static struct mr6_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table()
141 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup()
226 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init()
258 static void __net_exit ip6mr_rules_exit(struct net *net) in ip6mr_rules_exit()
269 #define ip6mr_for_each_table(mrt, net) \ argument
272 static struct mr6_table *ip6mr_get_table(struct net *net, u32 id) in ip6mr_get_table()
277 static int ip6mr_fib_lookup(struct net *net, struct flowi6 *flp6, in ip6mr_fib_lookup()
284 static int __net_init ip6mr_rules_init(struct net *net) in ip6mr_rules_init()
[all …]
Droute.c265 static inline struct rt6_info *ip6_dst_alloc(struct net *net, in ip6_dst_alloc()
421 static inline struct rt6_info *rt6_device_match(struct net *net, in rt6_device_match()
617 struct net *net; in rt6_select() local
732 static struct rt6_info *ip6_pol_route_lookup(struct net *net, in ip6_pol_route_lookup()
754 struct dst_entry * ip6_route_lookup(struct net *net, struct flowi6 *fl6, in ip6_route_lookup()
761 struct rt6_info *rt6_lookup(struct net *net, const struct in6_addr *daddr, in rt6_lookup()
857 static struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table, int oif, in ip6_pol_route()
928 static struct rt6_info *ip6_pol_route_input(struct net *net, struct fib6_table *table, in ip6_pol_route_input()
934 static struct dst_entry *ip6_route_input_lookup(struct net *net, in ip6_route_input_lookup()
947 struct net *net = dev_net(skb->dev); in ip6_route_input() local
[all …]

12345678910>>...13