• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/xnu-2422.115.4/bsd/net/

Lines Matching refs:uh

4776 			struct udphdr *uh = pd->hdr.udp;
4777 size_t plen = m->m_pkthdr.len - off - sizeof (*uh);
4779 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
4780 ntohs(uh->uh_dport) == PF_IKE_PORT &&
4784 m_copydata(m, off + sizeof (*uh), plen, &ike);
5014 struct udphdr *uh = pd->hdr.udp;
5017 ntohs(uh->uh_sport) == PF_IKE_PORT &&
5018 ntohs(uh->uh_dport) == PF_IKE_PORT) {
6379 struct udphdr *uh = pd->hdr.udp;
6390 key.ext.xport.port = uh->uh_sport;
6391 key.gwy.xport.port = uh->uh_dport;
6396 key.lan.xport.port = uh->uh_sport;
6397 key.ext.xport.port = uh->uh_dport;
6401 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
6402 ntohs(uh->uh_dport) == PF_IKE_PORT) {
6404 size_t plen = m->m_pkthdr.len - off - sizeof (*uh);
6413 m_copydata(m, off + sizeof (*uh), plen, &ike);
6490 off + uh->uh_ulen, pd, kif);
6500 m = pf_lazy_makewritable(pd, m, off + sizeof (*uh));
6507 pf_change_ap(direction, pd->mp, pd->src, &uh->uh_sport,
6508 pd->ip_sum, &uh->uh_sum,
6512 pf_change_ap(direction, pd->mp, pd->dst, &uh->uh_dport,
6513 pd->ip_sum, &uh->uh_sum,
6516 m_copyback(m, off, sizeof (*uh), uh);
6899 struct udphdr uh;
6901 if (!pf_pull_hdr(m, off2, &uh, sizeof (uh),
6914 key.ext.xport.port = uh.uh_dport;
6915 key.gwy.xport.port = uh.uh_sport;
6920 key.lan.xport.port = uh.uh_dport;
6921 key.ext.xport.port = uh.uh_sport;
6927 if (ntohs(uh.uh_sport) == PF_IKE_PORT &&
6928 ntohs(uh.uh_dport) == PF_IKE_PORT) {
6931 m->m_pkthdr.len - off2 - sizeof (uh);
6942 m_copydata(m, off + sizeof (uh), plen, &ike);
6983 pf_change_icmp(pd2.src, &uh.uh_sport,
6985 (*state)->state_key->lan.xport.port, &uh.uh_sum,
6989 pf_change_icmp(pd2.dst, &uh.uh_dport,
6991 (*state)->state_key->gwy.xport.port, &uh.uh_sum,
6996 off2 + sizeof (uh));
7017 m_copyback(m, off2, sizeof (uh), &uh);
8260 struct udphdr uh;
8262 pd.hdr.udp = &uh;
8263 if (!pf_pull_hdr(m, off, &uh, sizeof (uh),
8268 if (uh.uh_dport == 0 ||
8269 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8270 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8850 struct udphdr uh;
8852 pd.hdr.udp = &uh;
8853 if (!pf_pull_hdr(m, off, &uh, sizeof (uh),
8858 if (uh.uh_dport == 0 ||
8859 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8860 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {