Home | History | Annotate | Download | only in slirp

Lines Matching refs:uh

78 	register struct udphdr *uh;
105 uh = (struct udphdr *)((caddr_t)ip + iphlen);
111 len = ntohs((u_int16_t)uh->uh_ulen);
132 if (UDPCKSUM && uh->uh_sum) {
135 ((struct ipovly *)ip)->ih_len = uh->uh_ulen;
137 * uh->uh_sum = cksum(m, len + sizeof (struct ip));
138 * if (uh->uh_sum) {
149 if (ntohs(uh->uh_dport) == BOOTP_SERVER) {
160 if (ntohs(uh->uh_dport) == TFTP_SERVER) {
169 if (so->so_lport != uh->uh_sport ||
174 if (tmp->so_lport == uh->uh_sport &&
177 tmp->so_fport = uh->uh_dport;
208 so->so_lport = uh->uh_sport;
220 so->so_fport = uh->uh_dport; /* XXX */