Home
last modified time | relevance | path

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

/linux/net/ipv4/
H A Dudp.c242 struct udp_table *udptable = udp_get_table_prot(sk); in udp_lib_get_port() local
261 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
262 last = first + udptable->mask + 1; in udp_lib_get_port()
264 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
268 udptable->log); in udp_lib_get_port()
278 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
288 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
294 slot2 &= udptable->mask; in udp_lib_get_port()
295 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
297 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
[all …]
/linux/net/ipv6/
H A Dudp.c199 const struct udp_table *udptable) in udp6_lib_lookup1() argument
201 unsigned int slot = udp_hashfn(net, hnum, udptable->mask); in udp6_lib_lookup1()
202 struct udp_hslot *hslot = &udptable->hash[slot]; in udp6_lib_lookup1()
280 struct udp_table *udptable) in udp6_lib_lookup4() argument
293 struct udp_table *udptable) in udp6_lib_lookup4() argument
303 slot = hash4 & udptable->mask; in udp6_lib_lookup4()
304 hslot4 = &udptable->hash4[slot]; in udp6_lib_lookup4()
347 int dif, int sdif, struct udp_table *udptable, in __udp6_lib_lookup() argument
356 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_lookup()
360 dif, sdif, udptable); in __udp6_lib_lookup()
[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()