Lines Matching refs:udptable
236 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_get_port() local
254 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
255 last = first + udptable->mask + 1; in udp_lib_get_port()
257 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
261 udptable->log); in udp_lib_get_port()
271 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
281 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
287 slot2 &= udptable->mask; in udp_lib_get_port()
288 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
290 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
296 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
326 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_get_port()
462 struct udp_table *udptable, in udp4_lookup_run_bpf() argument
470 if (udptable != &udp_table) in udp4_lookup_run_bpf()
489 int sdif, struct udp_table *udptable, struct sk_buff *skb) in __udp4_lib_lookup() argument
497 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
498 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
509 sk = udp4_lookup_run_bpf(net, udptable, skb, in __udp4_lib_lookup()
523 slot2 = hash2 & udptable->mask; in __udp4_lib_lookup()
524 hslot2 = &udptable->hash2[slot2]; in __udp4_lib_lookup()
538 struct udp_table *udptable) in __udp4_lib_lookup_skb() argument
544 inet_sdif(skb), udptable, skb); in __udp4_lib_lookup_skb()
650 struct udp_table *udptable, in __udp4_lib_err_encap() argument
679 udptable, NULL); in __udp4_lib_err_encap()
709 int __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) in __udp4_lib_err() argument
724 inet_sdif(skb), udptable, NULL); in __udp4_lib_err()
729 sk = __udp4_lib_err_encap(net, iph, uh, udptable, sk, skb, in __udp4_lib_err()
2001 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash() local
2004 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
2006 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
2032 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_rehash() local
2035 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
2036 nhslot2 = udp_hashslot2(udptable, newhash); in udp_lib_rehash()
2041 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2274 struct udp_table *udptable, in __udp4_lib_mcast_deliver() argument
2279 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver()
2289 udptable->mask; in __udp4_lib_mcast_deliver()
2290 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask; in __udp4_lib_mcast_deliver()
2292 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2408 int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, in __udp4_lib_rcv() argument
2462 saddr, daddr, udptable, proto); in __udp4_lib_rcv()
2464 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp4_lib_rcv()