Lines Matching defs:uh
198 struct udphdr *uh;
215 IP6_EXTHDR_GET(uh, struct udphdr *, m, iphlen, sizeof(struct udphdr));
216 if (!uh) {
222 if (uh->uh_dport == 0) {
231 len = ntohs((u_int16_t)uh->uh_ulen);
270 savesum = uh->uh_sum;
271 if (uh->uh_sum == 0) {
289 uh->uh_sum = in4_cksum(m, IPPROTO_UDP,
293 uh->uh_sum = in6_cksum(m, IPPROTO_UDP,
296 if (uh->uh_sum != 0) {
309 uh->uh_dport == htons(udpencap_port)) {
351 srcsa.sin.sin_port = uh->uh_sport;
357 dstsa.sin.sin_port = uh->uh_dport;
365 srcsa.sin6.sin6_port = uh->uh_sport;
375 dstsa.sin6.sin6_port = uh->uh_dport;
426 if (inp->inp_lport != uh->uh_dport)
455 inp->inp_fport != uh->uh_sport)
462 inp->inp_fport != uh->uh_sport)
474 uh, &srcsa.sa, 0);
509 udp_sbappend(last, m, ip, ip6, iphlen, uh, &srcsa.sa, 0);
524 uh->uh_sport, &ip6->ip6_dst, uh->uh_dport,
530 uh->uh_sport, ip->ip_dst, uh->uh_dport,
539 uh->uh_dport, m, m->m_pkthdr.ph_rtableid);
544 uh->uh_dport, m, m->m_pkthdr.ph_rtableid);
584 uh->uh_sum = savesum;
591 uh->uh_sum = savesum;
635 udp_sbappend(inp, m, ip, ip6, iphlen, uh, &srcsa.sa, ipsecflowinfo);
646 struct ip6_hdr *ip6, int hlen, struct udphdr *uh,
652 hlen += sizeof(*uh);
656 ip, ip6, uh, hlen);
675 *mp = sbcreatecontrol((caddr_t)&uh->uh_dport, sizeof(u_int16_t),
684 *mp = sbcreatecontrol((caddr_t)&uh->uh_dport, sizeof(u_int16_t),
728 struct udphdr uh;
810 bzero(&uh, sizeof(uh));
811 m_copydata(m, off, sizeof(*uhp), (caddr_t)&uh);
831 uh.uh_dport, &sa6_src.sin6_addr, uh.uh_sport,
843 &sa6_src.sin6_addr, uh.uh_sport, NULL,
868 in6_pcbnotify(&udb6table, &sa6, uh.uh_dport,
869 &sa6_src, uh.uh_sport, rdomain, cmd, cmdarg, notify);