Home
last modified time | relevance | path

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

/linux-4.4.14/net/ipv6/
Dinet6_hashtables.c56 const u16 hnum, in __inet6_lookup_established() argument
61 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established()
65 unsigned int hash = inet6_ehashfn(net, daddr, hnum, saddr, sport); in __inet6_lookup_established()
97 const unsigned short hnum, in compute_score() argument
103 if (net_eq(sock_net(sk), net) && inet_sk(sk)->inet_num == hnum && in compute_score()
126 const unsigned short hnum, const int dif) in inet6_lookup_listener() argument
133 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener()
141 score = compute_score(sk, net, hnum, daddr, dif); in inet6_lookup_listener()
147 phash = inet6_ehashfn(net, daddr, hnum, in inet6_lookup_listener()
168 else if (unlikely(compute_score(result, net, hnum, daddr, in inet6_lookup_listener()
Dudp.c145 unsigned short hnum, in compute_score() argument
154 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
194 unsigned short hnum, int dif) in compute_score2() argument
200 udp_sk(sk)->udp_port_hash != hnum || in compute_score2()
237 const struct in6_addr *daddr, unsigned int hnum, int dif, in udp6_lib_lookup2() argument
250 daddr, hnum, dif); in udp6_lib_lookup2()
256 hash = udp6_ehashfn(net, daddr, hnum, in udp6_lib_lookup2()
279 daddr, hnum, dif) < badness)) { in udp6_lib_lookup2()
294 unsigned short hnum = ntohs(dport); in __udp6_lib_lookup() local
295 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp6_lib_lookup()
[all …]
/linux-4.4.14/include/net/
Dinet6_hashtables.h52 const u16 hnum, const int dif);
59 const unsigned short hnum, const int dif);
66 const u16 hnum, in __inet6_lookup() argument
70 sport, daddr, hnum, dif); in __inet6_lookup()
75 daddr, hnum, dif); in __inet6_lookup()
Dinet_hashtables.h218 const unsigned short hnum,
287 const __be32 daddr, const u16 hnum,
306 u16 hnum = ntohs(dport); in __inet_lookup() local
308 saddr, sport, daddr, hnum, dif); in __inet_lookup()
311 daddr, hnum, dif); in __inet_lookup()
/linux-4.4.14/net/ipv4/
Dinet_hashtables.c172 const unsigned short hnum, const __be32 daddr, in compute_score() argument
178 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && in compute_score()
209 const __be32 daddr, const unsigned short hnum, in __inet_lookup_listener() argument
214 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener()
224 score = compute_score(sk, net, hnum, daddr, dif); in __inet_lookup_listener()
230 phash = inet_ehashfn(net, daddr, hnum, in __inet_lookup_listener()
251 else if (unlikely(compute_score(result, net, hnum, daddr, in __inet_lookup_listener()
286 const __be32 daddr, const u16 hnum, in __inet_lookup_established() argument
290 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet_lookup_established()
296 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); in __inet_lookup_established()
Dudp.c340 __be32 saddr, unsigned short hnum, __be16 sport, in compute_score() argument
347 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
387 __be32 daddr, unsigned int hnum, int dif) in compute_score2() argument
399 inet->inet_num != hnum) in compute_score2()
443 __be32 daddr, unsigned int hnum, int dif, in udp4_lib_lookup2() argument
456 daddr, hnum, dif); in udp4_lib_lookup2()
462 hash = udp_ehashfn(net, daddr, hnum, in udp4_lib_lookup2()
484 daddr, hnum, dif) < badness)) { in udp4_lib_lookup2()
501 unsigned short hnum = ntohs(dport); in __udp4_lib_lookup() local
502 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup()
[all …]