Home
last modified time | relevance | path

Searched refs:hnum (Results 1 – 4 of 4) sorted by relevance

/net/ipv6/
Dinet6_hashtables.c73 const u16 hnum, in __inet6_lookup_established() argument
78 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established()
82 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established()
135 const unsigned short hnum, in compute_score() argument
141 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score()
163 const unsigned short hnum, const int dif) in inet6_lookup_listener() argument
170 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener()
178 score = compute_score(sk, net, hnum, daddr, dif); in inet6_lookup_listener()
184 phash = inet6_ehashfn(net, daddr, hnum, in inet6_lookup_listener()
205 else if (unlikely(compute_score(result, net, hnum, daddr, in inet6_lookup_listener()
Dudp.c126 unsigned short hnum, in compute_score() argument
133 if (net_eq(sock_net(sk), net) && udp_sk(sk)->udp_port_hash == hnum && in compute_score()
166 const struct in6_addr *daddr, unsigned short hnum, in compute_score2() argument
171 if (net_eq(sock_net(sk), net) && udp_sk(sk)->udp_port_hash == hnum && in compute_score2()
202 const struct in6_addr *daddr, unsigned int hnum, int dif, in udp6_lib_lookup2() argument
215 daddr, hnum, dif); in udp6_lib_lookup2()
221 hash = inet6_ehashfn(net, daddr, hnum, in udp6_lib_lookup2()
246 daddr, hnum, dif) < badness)) { in udp6_lib_lookup2()
261 unsigned short hnum = ntohs(dport); in __udp6_lib_lookup() local
262 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp6_lib_lookup()
[all …]
/net/ipv4/
Dinet_hashtables.c145 const unsigned short hnum, const __be32 daddr, in compute_score() argument
151 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && in compute_score()
180 const __be32 daddr, const unsigned short hnum, in __inet_lookup_listener() argument
185 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener()
195 score = compute_score(sk, net, hnum, daddr, dif); in __inet_lookup_listener()
201 phash = inet_ehashfn(net, daddr, hnum, in __inet_lookup_listener()
222 else if (unlikely(compute_score(result, net, hnum, daddr, in __inet_lookup_listener()
236 const __be32 daddr, const u16 hnum, in __inet_lookup_established() argument
240 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet_lookup_established()
246 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); in __inet_lookup_established()
Dudp.c337 unsigned short hnum, in compute_score() argument
342 if (net_eq(sock_net(sk), net) && udp_sk(sk)->udp_port_hash == hnum && in compute_score()
376 __be32 daddr, unsigned int hnum, int dif) in compute_score2() argument
385 if (inet->inet_num != hnum) in compute_score2()
412 __be32 daddr, unsigned int hnum, int dif, in udp4_lib_lookup2() argument
425 daddr, hnum, dif); in udp4_lib_lookup2()
431 hash = inet_ehashfn(net, daddr, hnum, in udp4_lib_lookup2()
453 daddr, hnum, dif) < badness)) { in udp4_lib_lookup2()
470 unsigned short hnum = ntohs(dport); in __udp4_lib_lookup() local
471 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup()
[all …]