Searched refs:icmp_sk (Results 1 – 4 of 4) sorted by relevance
202 static struct sock *icmp_sk(struct net *net) in icmp_sk() function204 return this_cpu_read(*net->ipv4.icmp_sk); in icmp_sk()212 sk = icmp_sk(net); in icmp_xmit_lock()375 sk = icmp_sk(dev_net((*rt)->dst.dev)); in icmp_push_reply()1315 inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv4.icmp_sk, i)); in icmp_sk_exit()1316 free_percpu(net->ipv4.icmp_sk); in icmp_sk_exit()1317 net->ipv4.icmp_sk = NULL; in icmp_sk_exit()1324 net->ipv4.icmp_sk = alloc_percpu(struct sock *); in icmp_sk_init()1325 if (!net->ipv4.icmp_sk) in icmp_sk_init()1336 *per_cpu_ptr(net->ipv4.icmp_sk, i) = sk; in icmp_sk_init()
80 return this_cpu_read(*net->ipv6.icmp_sk); in icmpv6_sk()1019 inet_ctl_sock_destroy(*per_cpu_ptr(net->ipv6.icmp_sk, i)); in icmpv6_sk_exit()1020 free_percpu(net->ipv6.icmp_sk); in icmpv6_sk_exit()1028 net->ipv6.icmp_sk = alloc_percpu(struct sock *); in icmpv6_sk_init()1029 if (!net->ipv6.icmp_sk) in icmpv6_sk_init()1041 *per_cpu_ptr(net->ipv6.icmp_sk, i) = sk; in icmpv6_sk_init()
95 struct sock * __percpu *icmp_sk; member
70 struct sock * __percpu *icmp_sk; member