uh 163 arch/i386/stand/libsa/pxe.c struct udphdr *uh; uh 166 arch/i386/stand/libsa/pxe.c uh = (struct udphdr *)pkt - 1; uh 167 arch/i386/stand/libsa/pxe.c ip = (struct ip *)uh - 1; uh 190 arch/i386/stand/libsa/pxe.c uh->uh_sport = ur->s_port; uh 191 arch/i386/stand/libsa/pxe.c uh->uh_dport = d->myport; uh 751 dev/ic/hme.c struct udphdr *uh; uh 795 dev/ic/hme.c uh = (struct udphdr *)((caddr_t)ip + hlen); uh 796 dev/ic/hme.c if (uh->uh_sum == 0) uh 1893 dev/pci/if_sk.c struct udphdr *uh = (struct udphdr *)pp; uh 1895 dev/pci/if_sk.c if (uh->uh_sum == 0) /* udp with no checksum */ uh 67 lib/libsa/net.c struct udphdr *uh; uh 83 lib/libsa/net.c uh = (struct udphdr *)pkt - 1; uh 84 lib/libsa/net.c ip = (struct ip *)uh - 1; uh 85 lib/libsa/net.c len += sizeof(*ip) + sizeof(*uh); uh 87 lib/libsa/net.c bzero(ip, sizeof(*ip) + sizeof(*uh)); uh 98 lib/libsa/net.c uh->uh_sport = d->myport; uh 99 lib/libsa/net.c uh->uh_dport = d->destport; uh 100 lib/libsa/net.c uh->uh_ulen = htons(len - sizeof(*ip)); uh 106 lib/libsa/net.c ui->ui_len = uh->uh_ulen; uh 107 lib/libsa/net.c uh->uh_sum = in_cksum(ui, len); uh 121 lib/libsa/net.c return (cc - (sizeof(*ip) + sizeof(*uh))); uh 134 lib/libsa/net.c struct udphdr *uh; uh 144 lib/libsa/net.c uh = (struct udphdr *)pkt - 1; uh 145 lib/libsa/net.c ip = (struct ip *)uh - 1; uh 147 lib/libsa/net.c n = readether(d, ip, len + sizeof(*ip) + sizeof(*uh), tleft, &etype); uh 148 lib/libsa/net.c if (n < 0 || (size_t)n < sizeof(*ip) + sizeof(*uh)) uh 210 lib/libsa/net.c bcopy(((u_char *)ip) + hlen, uh, len - hlen); uh 214 lib/libsa/net.c if (uh->uh_dport != d->myport) { uh 218 lib/libsa/net.c d->myport, ntohs(uh->uh_dport)); uh 223 lib/libsa/net.c if (uh->uh_sum) { uh 224 lib/libsa/net.c n = ntohs(uh->uh_ulen) + sizeof(*ip); uh 234 lib/libsa/net.c ui->ui_len = uh->uh_ulen; uh 245 lib/libsa/net.c NTOHS(uh->uh_dport); uh 246 lib/libsa/net.c NTOHS(uh->uh_sport); uh 247 lib/libsa/net.c NTOHS(uh->uh_ulen); uh 248 lib/libsa/net.c if (uh->uh_ulen < sizeof(*uh)) { uh 252 lib/libsa/net.c uh->uh_ulen, sizeof(*uh)); uh 257 lib/libsa/net.c n -= sizeof(*ip) + sizeof(*uh); uh 127 lib/libsa/tftp.c struct udphdr *uh; uh 128 lib/libsa/tftp.c uh = (struct udphdr *) pkt - 1; uh 129 lib/libsa/tftp.c d->destport = uh->uh_sport; uh 4039 net/pf.c struct udphdr *uh = pd->hdr.udp; uh 4046 net/pf.c key.ext.port = uh->uh_sport; uh 4047 net/pf.c key.gwy.port = uh->uh_dport; uh 4051 net/pf.c key.lan.port = uh->uh_sport; uh 4052 net/pf.c key.ext.port = uh->uh_dport; uh 4081 net/pf.c pf_change_ap(pd->src, &uh->uh_sport, pd->ip_sum, uh 4082 net/pf.c &uh->uh_sum, &(*state)->state_key->gwy.addr, uh 4085 net/pf.c pf_change_ap(pd->dst, &uh->uh_dport, pd->ip_sum, uh 4086 net/pf.c &uh->uh_sum, &(*state)->state_key->lan.addr, uh 4088 net/pf.c m_copyback(m, off, sizeof(*uh), uh); uh 4445 net/pf.c struct udphdr uh; uh 4447 net/pf.c if (!pf_pull_hdr(m, off2, &uh, sizeof(uh), uh 4460 net/pf.c key.ext.port = uh.uh_dport; uh 4461 net/pf.c key.gwy.port = uh.uh_sport; uh 4465 net/pf.c key.lan.port = uh.uh_dport; uh 4466 net/pf.c key.ext.port = uh.uh_sport; uh 4473 net/pf.c pf_change_icmp(pd2.src, &uh.uh_sport, uh 4477 net/pf.c &uh.uh_sum, uh 4481 net/pf.c pf_change_icmp(pd2.dst, &uh.uh_dport, uh 4484 net/pf.c (*state)->state_key->gwy.port, &uh.uh_sum, uh 4506 net/pf.c m_copyback(m, off2, sizeof(uh), &uh); uh 5455 net/pf.c struct udphdr uh; uh 5457 net/pf.c pd.hdr.udp = &uh; uh 5458 net/pf.c if (!pf_pull_hdr(m, off, &uh, sizeof(uh), uh 5463 net/pf.c if (uh.uh_dport == 0 || uh 5464 net/pf.c ntohs(uh.uh_ulen) > m->m_pkthdr.len - off || uh 5465 net/pf.c ntohs(uh.uh_ulen) < sizeof(struct udphdr)) { uh 5830 net/pf.c struct udphdr uh; uh 5832 net/pf.c pd.hdr.udp = &uh; uh 5833 net/pf.c if (!pf_pull_hdr(m, off, &uh, sizeof(uh), uh 5838 net/pf.c if (uh.uh_dport == 0 || uh 5839 net/pf.c ntohs(uh.uh_ulen) > m->m_pkthdr.len - off || uh 5840 net/pf.c ntohs(uh.uh_ulen) < sizeof(struct udphdr)) { uh 408 netinet/ipsec_output.c struct udphdr *uh; uh 420 netinet/ipsec_output.c uh = mtod(mi, struct udphdr *); uh 421 netinet/ipsec_output.c uh->uh_sport = uh->uh_dport = htons(udpencap_port); uh 423 netinet/ipsec_output.c uh->uh_dport = tdb->tdb_udpencap_port; uh 425 netinet/ipsec_output.c uh->uh_ulen = htons(m->m_pkthdr.len - sizeof(struct ip)); uh 426 netinet/ipsec_output.c uh->uh_sum = 0; uh 165 netinet/udp_usrreq.c struct udphdr *uh; uh 214 netinet/udp_usrreq.c IP6_EXTHDR_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr)); uh 215 netinet/udp_usrreq.c if (!uh) { uh 221 netinet/udp_usrreq.c if (uh->uh_dport == 0) { uh 230 netinet/udp_usrreq.c len = ntohs((u_int16_t)uh->uh_ulen); uh 267 netinet/udp_usrreq.c savesum = uh->uh_sum; uh 280 netinet/udp_usrreq.c if (uh->uh_sum == 0) { uh 284 netinet/udp_usrreq.c if ((uh->uh_sum = in6_cksum(m, IPPROTO_UDP, iphlen, len))) { uh 290 netinet/udp_usrreq.c if (uh->uh_sum) { uh 299 netinet/udp_usrreq.c if ((uh->uh_sum = in4_cksum(m, IPPROTO_UDP, uh 314 netinet/udp_usrreq.c uh->uh_dport == htons(udpencap_port)) { uh 353 netinet/udp_usrreq.c srcsa.sin.sin_port = uh->uh_sport; uh 359 netinet/udp_usrreq.c dstsa.sin.sin_port = uh->uh_dport; uh 367 netinet/udp_usrreq.c srcsa.sin6.sin6_port = uh->uh_sport; uh 378 netinet/udp_usrreq.c dstsa.sin6.sin6_port = uh->uh_dport; uh 426 netinet/udp_usrreq.c if (inp->inp_lport != uh->uh_dport) uh 445 netinet/udp_usrreq.c inp->inp_fport != uh->uh_sport) uh 452 netinet/udp_usrreq.c inp->inp_fport != uh->uh_sport) uh 528 netinet/udp_usrreq.c inp = in6_pcbhashlookup(&udbtable, &ip6->ip6_src, uh->uh_sport, uh 529 netinet/udp_usrreq.c &ip6->ip6_dst, uh->uh_dport); uh 532 netinet/udp_usrreq.c inp = in_pcbhashlookup(&udbtable, ip->ip_src, uh->uh_sport, uh 533 netinet/udp_usrreq.c ip->ip_dst, uh->uh_dport); uh 542 netinet/udp_usrreq.c &ip6->ip6_dst, uh->uh_dport, inpl_reverse); uh 546 netinet/udp_usrreq.c ip->ip_dst, uh->uh_dport, inpl_reverse); uh 555 netinet/udp_usrreq.c uh->uh_sum = savesum; uh 562 netinet/udp_usrreq.c uh->uh_sum = savesum; uh 667 netinet/udp_usrreq.c struct udphdr uh; uh 754 netinet/udp_usrreq.c bzero(&uh, sizeof(uh)); uh 755 netinet/udp_usrreq.c m_copydata(m, off, sizeof(*uhp), (caddr_t)&uh); uh 779 netinet/udp_usrreq.c uh.uh_dport, &sa6_src.sin6_addr, uh.uh_sport)) uh 790 netinet/udp_usrreq.c &sa6_src.sin6_addr, uh.uh_sport, 0); uh 813 netinet/udp_usrreq.c uh.uh_dport, (struct sockaddr *)&sa6_src, uh 814 netinet/udp_usrreq.c uh.uh_sport, cmd, cmdarg, notify);