Home | History | Annotate | Download | only in slirp-android

Lines Matching refs:uh

85 	register struct udphdr *uh;
112 uh = (struct udphdr *)((caddr_t)ip + iphlen);
118 len = ntohs((u_int16_t)uh->uh_ulen);
134 if (slirp_should_drop(ntohl(ip->ip_dst.addr), ntohs(uh->uh_dport.port),
139 ntohs(uh->uh_sport.port),
141 ntohs(uh->uh_dport.port),
150 ntohs(uh->uh_sport.port),
152 ntohs(uh->uh_dport.port),
170 if (UDPCKSUM && uh->uh_sum) {
173 ((struct ipovly *)ip)->ih_len = uh->uh_ulen;
175 * uh->uh_sum = cksum(m, len + sizeof (struct ip));
176 * if (uh->uh_sum) {
187 if (port_geth(uh->uh_dport) == BOOTP_SERVER) {
198 if (port_geth(uh->uh_dport) == TFTP_SERVER) {
204 if (ntohs(uh->uh_dport.port) == 53) {
219 if (so->so_laddr_port != port_geth(uh->uh_sport) ||
224 if (tmp->so_laddr_port == port_geth(uh->uh_sport) &&
227 tmp->so_faddr_port = port_geth(uh->uh_dport);
258 so->so_laddr_port = port_geth(uh->uh_sport);
270 so->so_faddr_port = port_geth(uh->uh_dport); /* XXX */