Lines Matching refs:uh

4724 			struct udphdr *uh = pd->hdr.udp;
4725 size_t plen = m->m_pkthdr.len - off - sizeof (*uh);
4727 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
4728 ntohs(uh->uh_dport) == PF_IKE_PORT &&
4732 m_copydata(m, off + sizeof (*uh), plen, &ike);
4962 struct udphdr *uh = pd->hdr.udp;
4965 ntohs(uh->uh_sport) == PF_IKE_PORT &&
4966 ntohs(uh->uh_dport) == PF_IKE_PORT) {
6320 struct udphdr *uh = pd->hdr.udp;
6331 key.ext.xport.port = uh->uh_sport;
6332 key.gwy.xport.port = uh->uh_dport;
6337 key.lan.xport.port = uh->uh_sport;
6338 key.ext.xport.port = uh->uh_dport;
6342 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
6343 ntohs(uh->uh_dport) == PF_IKE_PORT) {
6345 size_t plen = m->m_pkthdr.len - off - sizeof (*uh);
6354 m_copydata(m, off + sizeof (*uh), plen, &ike);
6425 off + uh->uh_ulen, pd, kif);
6435 m = pf_lazy_makewritable(pd, m, off + sizeof (*uh));
6442 pf_change_ap(direction, pd->mp, pd->src, &uh->uh_sport,
6443 pd->ip_sum, &uh->uh_sum,
6447 pf_change_ap(direction, pd->mp, pd->dst, &uh->uh_dport,
6448 pd->ip_sum, &uh->uh_sum,
6451 m_copyback(m, off, sizeof (*uh), uh);
6834 struct udphdr uh;
6836 if (!pf_pull_hdr(m, off2, &uh, sizeof (uh),
6849 key.ext.xport.port = uh.uh_dport;
6850 key.gwy.xport.port = uh.uh_sport;
6855 key.lan.xport.port = uh.uh_dport;
6856 key.ext.xport.port = uh.uh_sport;
6862 if (ntohs(uh.uh_sport) == PF_IKE_PORT &&
6863 ntohs(uh.uh_dport) == PF_IKE_PORT) {
6866 m->m_pkthdr.len - off2 - sizeof (uh);
6877 m_copydata(m, off + sizeof (uh), plen, &ike);
6911 pf_change_icmp(pd2.src, &uh.uh_sport,
6913 (*state)->state_key->lan.xport.port, &uh.uh_sum,
6917 pf_change_icmp(pd2.dst, &uh.uh_dport,
6919 (*state)->state_key->gwy.xport.port, &uh.uh_sum,
6924 off2 + sizeof (uh));
6945 m_copyback(m, off2, sizeof (uh), &uh);
8226 struct udphdr uh;
8228 pd.hdr.udp = &uh;
8229 if (!pf_pull_hdr(m, off, &uh, sizeof (uh),
8234 if (uh.uh_dport == 0 ||
8235 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8236 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8820 struct udphdr uh;
8822 pd.hdr.udp = &uh;
8823 if (!pf_pull_hdr(m, off, &uh, sizeof (uh),
8828 if (uh.uh_dport == 0 ||
8829 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8830 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {