Home
last modified time | relevance | path

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

/Linux-v4.19/net/ipv6/
Dinet6_hashtables.c58 const u16 hnum, in __inet6_lookup_established() argument
63 const __portpair ports = INET_COMBINED_PORTS(sport, hnum); in __inet6_lookup_established()
67 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()
133 const unsigned short hnum, const int dif, const int sdif) in inet6_lhash2_lookup() argument
143 score = compute_score(sk, net, hnum, daddr, dif, sdif, in inet6_lhash2_lookup()
147 phash = inet6_ehashfn(net, daddr, hnum, in inet6_lhash2_lookup()
167 const unsigned short hnum, const int dif, const int sdif) in inet6_lookup_listener() argument
169 unsigned int hash = inet_lhashfn(net, hnum); in inet6_lookup_listener()
[all …]
Dudp.c115 const struct in6_addr *daddr, unsigned short hnum, in compute_score() argument
122 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
166 const struct in6_addr *daddr, unsigned int hnum, in udp6_lib_lookup2() argument
178 daddr, hnum, dif, sdif, exact_dif); in udp6_lib_lookup2()
181 hash = udp6_ehashfn(net, daddr, hnum, in udp6_lib_lookup2()
204 unsigned short hnum = ntohs(dport); in __udp6_lib_lookup() local
205 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp6_lib_lookup()
212 hash2 = ipv6_portaddr_hash(net, daddr, hnum); in __udp6_lib_lookup()
219 daddr, hnum, dif, sdif, exact_dif, in __udp6_lib_lookup()
223 hash2 = ipv6_portaddr_hash(net, &in6addr_any, hnum); in __udp6_lib_lookup()
[all …]
/Linux-v4.19/include/net/
Dinet6_hashtables.h52 const u16 hnum, const int dif,
61 const unsigned short hnum,
70 const u16 hnum, in __inet6_lookup() argument
75 sport, daddr, hnum, in __inet6_lookup()
82 daddr, hnum, dif, sdif); in __inet6_lookup()
Dinet_hashtables.h240 const unsigned short hnum,
309 const __be32 daddr, const u16 hnum,
330 u16 hnum = ntohs(dport); in __inet_lookup() local
334 daddr, hnum, dif, sdif); in __inet_lookup()
340 sport, daddr, hnum, dif, sdif); in __inet_lookup()
/Linux-v4.19/net/ipv4/
Dinet_hashtables.c227 const unsigned short hnum, const __be32 daddr, in compute_score() argument
233 if (net_eq(sock_net(sk), net) && inet->inet_num == hnum && in compute_score()
269 const __be32 daddr, const unsigned short hnum, in inet_lhash2_lookup() argument
280 score = compute_score(sk, net, hnum, daddr, in inet_lhash2_lookup()
284 phash = inet_ehashfn(net, daddr, hnum, in inet_lhash2_lookup()
303 const __be32 daddr, const unsigned short hnum, in __inet_lookup_listener() argument
306 unsigned int hash = inet_lhashfn(net, hnum); in __inet_lookup_listener()
322 hash2 = ipv4_portaddr_hash(net, daddr, hnum); in __inet_lookup_listener()
328 saddr, sport, daddr, hnum, in __inet_lookup_listener()
335 hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum); in __inet_lookup_listener()
[all …]
Dudp.c369 __be32 daddr, unsigned short hnum, in compute_score() argument
376 udp_sk(sk)->udp_port_hash != hnum || in compute_score()
431 __be32 daddr, unsigned int hnum, in udp4_lib_lookup2() argument
444 daddr, hnum, dif, sdif, exact_dif); in udp4_lib_lookup2()
447 hash = udp_ehashfn(net, daddr, hnum, in udp4_lib_lookup2()
469 unsigned short hnum = ntohs(dport); in __udp4_lib_lookup() local
470 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup()
477 hash2 = ipv4_portaddr_hash(net, daddr, hnum); in __udp4_lib_lookup()
484 daddr, hnum, dif, sdif, in __udp4_lib_lookup()
488 hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum); in __udp4_lib_lookup()
[all …]