Lines Matching refs:udptable

233 	struct udp_table *udptable = sk->sk_prot->h.udp_table;  in udp_lib_get_port()  local
251 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
252 last = first + udptable->mask + 1; in udp_lib_get_port()
254 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
258 udptable->log); in udp_lib_get_port()
268 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
278 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
284 slot2 &= udptable->mask; in udp_lib_get_port()
285 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
287 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
293 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
323 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
459 struct udp_table *udptable, in udp4_lookup_run_bpf() argument
467 if (udptable != &udp_table) in udp4_lookup_run_bpf()
486 int sdif, struct udp_table *udptable, struct sk_buff *skb) in __udp4_lib_lookup() argument
494 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
495 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
506 sk = udp4_lookup_run_bpf(net, udptable, skb, in __udp4_lib_lookup()
520 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
521 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
535 struct udp_table *udptable) in __udp4_lib_lookup_skb() argument
541 inet_sdif(skb), udptable, skb); in __udp4_lib_lookup_skb()
647 struct udp_table *udptable, in __udp4_lib_err_encap() argument
676 udptable, NULL); in __udp4_lib_err_encap()
706 int __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) in __udp4_lib_err() argument
721 inet_sdif(skb), udptable, NULL); in __udp4_lib_err()
726 sk = __udp4_lib_err_encap(net, iph, uh, udptable, sk, skb, in __udp4_lib_err()
2006 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash() local
2009 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
2011 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
2037 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_rehash() local
2040 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
2041 nhslot2 = udp_hashslot2(udptable, newhash); in udp_lib_rehash()
2046 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2269 struct udp_table *udptable, in __udp4_lib_mcast_deliver() argument
2274 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver()
2284 udptable->mask; in __udp4_lib_mcast_deliver()
2285 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask; in __udp4_lib_mcast_deliver()
2287 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2403 int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, in __udp4_lib_rcv() argument
2454 saddr, daddr, udptable, proto); in __udp4_lib_rcv()
2456 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp4_lib_rcv()