Lines Matching refs:sock_net
52 return inet6_ehashfn(sock_net(sk), in sk_ehashfn()
64 return inet_ehashfn(sock_net(sk), in sk_ehashfn()
118 const int bhash = inet_bhashfn(sock_net(sk), inet_sk(sk)->inet_num, in __inet_put_port()
144 const int bhash = inet_bhashfn(sock_net(sk), port, in __inet_inherit_port()
165 if (net_eq(ib_net(tb), sock_net(sk)) && in __inet_inherit_port()
171 sock_net(sk), head, port, in __inet_inherit_port()
194 hash = ipv6_portaddr_hash(sock_net(sk), in inet_lhash2_bucket_sk()
199 hash = ipv4_portaddr_hash(sock_net(sk), in inet_lhash2_bucket_sk()
247 if (net_eq(sock_net(sk), net) && sk->sk_num == hnum && in compute_score()
457 struct net *net = sock_net(sk); in __inet_check_established()
498 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_check_established()
532 struct net *net = sock_net(sk); in inet_ehash_lookup_by_sk()
603 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in inet_ehash_nolisten()
666 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); in __inet_hash()
699 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, -1); in __inet_unhash()
751 struct net *net = sock_net(sk); in __inet_hash_connect()