Lines Matching refs:net

26 u32 inet6_ehashfn(const struct net *net,  in inet6_ehashfn()  argument
42 inet6_ehash_secret + net_hash_mix(net)); in inet6_ehashfn()
51 struct sock *__inet6_lookup_established(struct net *net, in __inet6_lookup_established() argument
65 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established()
75 if (!INET6_MATCH(sk, net, saddr, daddr, ports, dif)) in __inet6_lookup_established()
80 if (unlikely(!INET6_MATCH(sk, net, saddr, daddr, ports, dif))) { in __inet6_lookup_established()
96 static inline int compute_score(struct sock *sk, struct net *net, in compute_score() argument
103 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score()
121 struct sock *inet6_lookup_listener(struct net *net, in inet6_lookup_listener() argument
131 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener()
139 score = compute_score(sk, net, hnum, daddr, dif); in inet6_lookup_listener()
145 phash = inet6_ehashfn(net, daddr, hnum, in inet6_lookup_listener()
166 else if (unlikely(compute_score(result, net, hnum, daddr, in inet6_lookup_listener()
177 struct sock *inet6_lookup(struct net *net, struct inet_hashinfo *hashinfo, in inet6_lookup() argument
185 sk = __inet6_lookup(net, hashinfo, saddr, sport, daddr, ntohs(dport), dif); in inet6_lookup()
202 struct net *net = sock_net(sk); in __inet6_check_established() local
203 const unsigned int hash = inet6_ehashfn(net, daddr, lport, saddr, in __inet6_check_established()
218 if (likely(INET6_MATCH(sk2, net, saddr, daddr, ports, dif))) { in __inet6_check_established()
238 NET_INC_STATS_BH(net, LINUX_MIB_TIMEWAITRECYCLED); in __inet6_check_established()