Home
last modified time | relevance | path

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

/linux-4.1.27/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()
124 const unsigned short hnum, const int dif) 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()
Dudp.c145 unsigned short hnum, in compute_score() argument
154 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
192 unsigned short hnum, int dif) in compute_score2() argument
198 udp_sk(sk)->udp_port_hash != hnum || in compute_score2()
232 const struct in6_addr *daddr, unsigned int hnum, int dif, in udp6_lib_lookup2() argument
245 daddr, hnum, dif); in udp6_lib_lookup2()
251 hash = udp6_ehashfn(net, daddr, hnum, in udp6_lib_lookup2()
276 daddr, hnum, dif) < badness)) { in udp6_lib_lookup2()
291 unsigned short hnum = ntohs(dport); in __udp6_lib_lookup() local
292 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp6_lib_lookup()
[all …]
/linux-4.1.27/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.h260 const unsigned short hnum,
329 const __be32 daddr, const u16 hnum,
348 u16 hnum = ntohs(dport); in __inet_lookup() local
350 saddr, sport, daddr, hnum, dif); in __inet_lookup()
353 daddr, hnum, dif); in __inet_lookup()
/linux-4.1.27/net/ipv4/
Dinet_hashtables.c173 const unsigned short hnum, const __be32 daddr, in compute_score() argument
179 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && in compute_score()
208 const __be32 daddr, const unsigned short hnum, in __inet_lookup_listener() argument
213 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener()
223 score = compute_score(sk, net, hnum, daddr, dif); in __inet_lookup_listener()
229 phash = inet_ehashfn(net, daddr, hnum, in __inet_lookup_listener()
250 else if (unlikely(compute_score(result, net, hnum, daddr, in __inet_lookup_listener()
285 const __be32 daddr, const u16 hnum, in __inet_lookup_established() argument
289 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet_lookup_established()
295 unsigned int hash = inet_ehashfn(net, daddr, hnum, saddr, sport); in __inet_lookup_established()
Dudp.c341 __be32 saddr, unsigned short hnum, __be16 sport, in compute_score() argument
348 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()
440 __be32 daddr, unsigned int hnum, int dif, in udp4_lib_lookup2() argument
453 daddr, hnum, dif); in udp4_lib_lookup2()
459 hash = udp_ehashfn(net, daddr, hnum, in udp4_lib_lookup2()
481 daddr, hnum, dif) < badness)) { in udp4_lib_lookup2()
498 unsigned short hnum = ntohs(dport); in __udp4_lib_lookup() local
499 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup()
[all …]