Lines Matching refs:uh
303 const struct udphdr *uh; in FilterCheck() local
353 uh = (const struct udphdr *)payload; in FilterCheck()
354 sport = ntohs(uh->uh_sport); in FilterCheck()
355 dport = ntohs(uh->uh_dport); in FilterCheck()
496 ip_LogDNS(const struct udphdr *uh, const char *direction) in ip_LogDNS() argument
504 ptr = (const char *)uh + sizeof *uh; in ip_LogDNS()
505 len = ntohs(uh->uh_ulen) - sizeof *uh; in ip_LogDNS()
567 const struct udphdr *uh; in PacketCheck() local
608 uh = NULL; in PacketCheck()
650 uh = (const struct udphdr *)payload; in PacketCheck()
654 if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport), in PacketCheck()
655 ntohs(uh->uh_dport))) in PacketCheck()
659 len = datalen - sizeof *uh; in PacketCheck()
661 "UDP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(uh->uh_sport)); in PacketCheck()
664 "%s:%d (%d/%d)", ncpaddr_ntoa(&dstaddr), ntohs(uh->uh_dport), in PacketCheck()
670 payload[sizeof *uh] == HDLC_ADDR && in PacketCheck()
671 payload[sizeof *uh + 1] == HDLC_UI) { in PacketCheck()
675 memcpy(&proto, payload + sizeof *uh + 2, sizeof proto); in PacketCheck()
681 result = PacketCheck(bundle, AF_INET, payload + sizeof *uh + 4, in PacketCheck()
682 nb - (payload - packet) - sizeof *uh - 4, filter, in PacketCheck()
802 uh = (const struct udphdr *)payload; in PacketCheck()
805 ntohs(uh->uh_sport)); in PacketCheck()
808 "%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(uh->uh_dport)); in PacketCheck()
901 if (filter && uh && ntohs(uh->uh_dport) == 53 && log_IsKept(LogDNS)) in PacketCheck()
902 ip_LogDNS(uh, filter->name); in PacketCheck()