Lines Matching refs:udptable
235 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_get_port() local
253 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
254 last = first + udptable->mask + 1; in udp_lib_get_port()
256 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
260 udptable->log); in udp_lib_get_port()
270 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
280 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
286 slot2 &= udptable->mask; in udp_lib_get_port()
287 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
289 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
295 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
325 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
461 struct udp_table *udptable, in udp4_lookup_run_bpf() argument
469 if (udptable != &udp_table) in udp4_lookup_run_bpf()
488 int sdif, struct udp_table *udptable, struct sk_buff *skb) in __udp4_lib_lookup() argument
496 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
497 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
508 sk = udp4_lookup_run_bpf(net, udptable, skb, in __udp4_lib_lookup()
522 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
523 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
537 struct udp_table *udptable) in __udp4_lib_lookup_skb() argument
543 inet_sdif(skb), udptable, skb); in __udp4_lib_lookup_skb()
650 struct udp_table *udptable, in __udp4_lib_err_encap() argument
667 udptable, NULL); in __udp4_lib_err_encap()
697 int __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) in __udp4_lib_err() argument
712 inet_sdif(skb), udptable, NULL); in __udp4_lib_err()
717 sk = __udp4_lib_err_encap(net, iph, uh, udptable, skb, in __udp4_lib_err()
1957 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash() local
1960 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
1962 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
1988 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_rehash() local
1991 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
1992 nhslot2 = udp_hashslot2(udptable, newhash); in udp_lib_rehash()
1997 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2215 struct udp_table *udptable, in __udp4_lib_mcast_deliver() argument
2220 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver()
2230 udptable->mask; in __udp4_lib_mcast_deliver()
2231 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask; in __udp4_lib_mcast_deliver()
2233 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2349 int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, in __udp4_lib_rcv() argument
2400 saddr, daddr, udptable, proto); in __udp4_lib_rcv()
2402 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp4_lib_rcv()