Home
last modified time | relevance | path

Searched refs:UDP_HTABLE_SIZE (Results 1 – 3 of 3) sorted by relevance

/linux-2.4.37.9/include/net/
Dudp.h30 #define UDP_HTABLE_SIZE 128 macro
36 extern struct sock *udp_hash[UDP_HTABLE_SIZE];
43 struct sock *sk = udp_hash[num & (UDP_HTABLE_SIZE - 1)]; in udp_lport_inuse()
/linux-2.4.37.9/net/ipv4/
Dudp.c107 struct sock *udp_hash[UDP_HTABLE_SIZE];
124 for (i = 0; i < UDP_HTABLE_SIZE; i++, result++) { in udp_v4_get_port()
128 sk = udp_hash[result & (UDP_HTABLE_SIZE - 1)]; in udp_v4_get_port()
133 (UDP_HTABLE_SIZE - 1)); in udp_v4_get_port()
146 for(i = 0; i < (1 << 16) / UDP_HTABLE_SIZE; i++, result += UDP_HTABLE_SIZE) { in udp_v4_get_port()
150 (UDP_HTABLE_SIZE - 1)); in udp_v4_get_port()
154 if (i >= (1 << 16) / UDP_HTABLE_SIZE) in udp_v4_get_port()
161 for (sk2 = udp_hash[snum & (UDP_HTABLE_SIZE - 1)]; in udp_v4_get_port()
179 struct sock **skp = &udp_hash[snum & (UDP_HTABLE_SIZE - 1)]; in udp_v4_get_port()
224 for(sk = udp_hash[hnum & (UDP_HTABLE_SIZE - 1)]; sk != NULL; sk = sk->next) { in udp_v4_lookup_longway()
[all …]
/linux-2.4.37.9/net/ipv6/
Dudp.c70 for (i = 0; i < UDP_HTABLE_SIZE; i++, result++) { in udp_v6_get_port()
74 sk = udp_hash[result & (UDP_HTABLE_SIZE - 1)]; in udp_v6_get_port()
79 (UDP_HTABLE_SIZE - 1)); in udp_v6_get_port()
92 for(i = 0; i < (1 << 16) / UDP_HTABLE_SIZE; i++, result += UDP_HTABLE_SIZE) { in udp_v6_get_port()
96 (UDP_HTABLE_SIZE - 1)); in udp_v6_get_port()
100 if (i >= (1 << 16) / UDP_HTABLE_SIZE) in udp_v6_get_port()
108 for (sk2 = udp_hash[snum & (UDP_HTABLE_SIZE - 1)]; in udp_v6_get_port()
138 struct sock **skp = &udp_hash[snum & (UDP_HTABLE_SIZE - 1)]; in udp_v6_get_port()
182 for(sk = udp_hash[hnum & (UDP_HTABLE_SIZE - 1)]; sk != NULL; sk = sk->next) { in udp_v6_lookup()
595 sk = udp_hash[ntohs(uh->dest) & (UDP_HTABLE_SIZE - 1)]; in udpv6_mcast_deliver()
[all …]