• Home
  • Raw
  • Download

Lines Matching refs:ntohs

241     datalen = ntohs(pip6->ip6_plen);  in FilterCheck()
257 len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */ in FilterCheck()
273 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2); in FilterCheck()
354 sport = ntohs(uh->uh_sport); in FilterCheck()
355 dport = ntohs(uh->uh_dport); in FilterCheck()
372 sport = ntohs(th->th_sport); in FilterCheck()
373 dport = ntohs(th->th_dport); in FilterCheck()
505 len = ntohs(uh->uh_ulen) - sizeof *uh; in ip_LogDNS()
515 *hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */ in ip_LogDNS()
543 qtype = dns_Qtype2Txt(ntohs(tmp)); in ip_LogDNS()
545 qclass = dns_Qclass2Txt(ntohs(tmp)); in ip_LogDNS()
589 datalen = ntohs(pip6->ip6_plen); in PacketCheck()
601 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2); in PacketCheck()
605 frag = ntohs(pip->ip_off) & IP_OFFMASK; in PacketCheck()
654 if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport), in PacketCheck()
655 ntohs(uh->uh_dport))) 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()
678 switch (ntohs(proto)) { in PacketCheck()
805 ntohs(uh->uh_sport)); in PacketCheck()
808 "%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(uh->uh_dport)); in PacketCheck()
818 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport), in PacketCheck()
819 ntohs(th->th_dport))) in PacketCheck()
825 "TCP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(th->th_sport)); in PacketCheck()
828 "%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(th->th_dport)); in PacketCheck()
846 if (ntohs(sp[0]) == 0x0204) { in PacketCheck()
848 " MSS = %d", ntohs(sp[1])); in PacketCheck()
899 if (filter && uh && ntohs(uh->uh_dport) == 53 && log_IsKept(LogDNS)) in PacketCheck()