Lines Matching refs:udptable
214 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_get_port() local
232 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
233 last = first + udptable->mask + 1; in udp_lib_get_port()
235 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
239 saddr_comp, udptable->log); in udp_lib_get_port()
249 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
258 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
264 slot2 &= udptable->mask; in udp_lib_get_port()
265 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
267 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
274 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
297 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
497 int dif, struct udp_table *udptable) in __udp4_lib_lookup() argument
502 unsigned int hash2, slot2, slot = udp_hashfn(net, hnum, udptable->mask); in __udp4_lib_lookup()
503 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp4_lib_lookup()
510 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
511 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
520 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
521 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
578 struct udp_table *udptable) in __udp4_lib_lookup_skb() argument
584 udptable); in __udp4_lib_lookup_skb()
625 void __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) in __udp4_lib_err() argument
638 iph->saddr, uh->source, skb->dev->ifindex, udptable); in __udp4_lib_err()
1395 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash() local
1398 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
1400 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
1424 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_rehash() local
1427 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
1428 nhslot2 = udp_hashslot2(udptable, newhash); in udp_lib_rehash()
1431 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
1669 struct udp_table *udptable, in __udp4_lib_mcast_deliver() argument
1675 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver()
1755 int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, in __udp4_lib_rcv() argument
1809 saddr, daddr, udptable, proto); in __udp4_lib_rcv()
1811 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp4_lib_rcv()