Lines Matching refs:udptable

234 	struct udp_table *udptable = sk->sk_prot->h.udp_table;  in udp_lib_get_port()  local
252 rand = (rand | 1) * (udptable->mask + 1); in udp_lib_get_port()
253 last = first + udptable->mask + 1; in udp_lib_get_port()
255 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
259 udptable->log); in udp_lib_get_port()
269 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
279 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
285 slot2 &= udptable->mask; in udp_lib_get_port()
286 hash2_nulladdr &= udptable->mask; in udp_lib_get_port()
288 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
294 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
324 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()
642 struct udp_table *udptable, in __udp4_lib_err_encap() argument
659 udptable, NULL); in __udp4_lib_err_encap()
689 int __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) in __udp4_lib_err() argument
704 inet_sdif(skb), udptable, NULL); in __udp4_lib_err()
709 sk = __udp4_lib_err_encap(net, iph, uh, udptable, skb, in __udp4_lib_err()
1947 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_unhash() local
1950 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
1952 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_unhash()
1978 struct udp_table *udptable = sk->sk_prot->h.udp_table; in udp_lib_rehash() local
1981 hslot2 = udp_hashslot2(udptable, udp_sk(sk)->udp_portaddr_hash); in udp_lib_rehash()
1982 nhslot2 = udp_hashslot2(udptable, newhash); in udp_lib_rehash()
1987 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2205 struct udp_table *udptable, in __udp4_lib_mcast_deliver() argument
2210 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver()
2220 udptable->mask; in __udp4_lib_mcast_deliver()
2221 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask; in __udp4_lib_mcast_deliver()
2223 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2339 int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, in __udp4_lib_rcv() argument
2390 saddr, daddr, udptable, proto); in __udp4_lib_rcv()
2392 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); in __udp4_lib_rcv()