Lines Matching defs:uh
209 register struct udphdr *uh;
229 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off);
230 ulen = ntohs((u_short)uh->uh_ulen);
242 if (uh->uh_dport == 0) {
253 if (uh->uh_sum) {
255 uh->uh_sum = m->m_pkthdr.csum_data;
256 uh->uh_sum ^= 0xffff;
278 fromsa.sin6_port = uh->uh_sport;
316 udp_in6.sin6_port = uh->uh_sport;
347 if (in6p->in6p_lport != uh->uh_dport) {
379 in6p->in6p_fport != uh->uh_sport) {
438 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off);
465 in6p = in6_pcblookup_hash(&udbinfo, &ip6->ip6_src, uh->uh_sport,
466 &ip6->ip6_dst, uh->uh_dport, 1,
480 buf, ntohs(uh->uh_dport),
481 ip6_sprintf(&ip6->ip6_src), ntohs(uh->uh_sport));
486 buf, ntohs(uh->uh_dport),
487 ip6_sprintf(&ip6->ip6_src), ntohs(uh->uh_sport)));
536 udp_in6.sin6_port = uh->uh_sport;
578 struct udphdr uh;
626 bzero(&uh, sizeof(uh));
627 m_copydata(m, off, sizeof(*uhp), (caddr_t)&uh);
629 (void) in6_pcbnotify(&udbinfo, sa, uh.uh_dport,
631 uh.uh_sport, cmd, NULL, notify);