Home
last modified time | relevance | path

Searched refs:udptable (Results 1 – 3 of 3) sorted by relevance

/linux/net/ipv4/
H A Dudp.c237 struct udp_table *udptable; in udp_lib_get_port() local
240 udptable = net->ipv4.udp_table; in udp_lib_get_port()
256 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
257 last = first + udptable->mask + 1; in udp_lib_get_port()
259 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
263 udptable->log); in udp_lib_get_port()
273 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
283 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
289 slot2 &= udptable->mask; in udp_lib_get_port()
290 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dsock_iter_batch.c100 struct udp_table *udptable; in iter_udp_soreuse() local
125 udptable = sk->sk_net.net->ipv4.udp_table; in iter_udp_soreuse()
126 bucket[idx] = udp_sk(sk)->udp_portaddr_hash & udptable->mask; in iter_udp_soreuse()
/linux/net/ipv6/
H A Dudp.c200 const struct udp_table *udptable) in udp6_lib_lookup1() argument
202 unsigned int slot = udp_hashfn(net, hnum, udptable->mask); in udp6_lib_lookup1()
203 struct udp_hslot *hslot = &udptable->hash[slot]; in udp6_lib_lookup1()
281 struct udp_table *udptable) in udp6_lib_lookup4() argument
294 struct udp_table *udptable) in udp6_lib_lookup4() argument
304 slot = hash4 & udptable->mask; in udp6_lib_lookup4()
305 hslot4 = &udptable->hash4[slot]; in udp6_lib_lookup4()
350 struct udp_table *udptable = net->ipv4.udp_table; in __udp6_lib_lookup() local
357 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_lookup()
361 dif, sdif, udptable); in __udp6_lib_lookup()
[all …]