Lines Matching refs:ntohs

85 	if (ntohs(*ah->dport) == NETBIOS_DGM_PORT_NUMBER  in fingerprint1()
86 || ntohs(*ah->sport) == NETBIOS_DGM_PORT_NUMBER) in fingerprint1()
103 if (ntohs(*ah->dport) == NETBIOS_NS_PORT_NUMBER in fingerprint2()
104 || ntohs(*ah->sport) == NETBIOS_NS_PORT_NUMBER) in fingerprint2()
347 pmax = (char *)uh + ntohs(uh->uh_ulen); in AliasHandleUdpNbt()
377 ntohs(ndh->source_port)); in AliasHandleUdpNbt()
398 ntohs(ndh->source_port)); in AliasHandleUdpNbt()
431 switch (ntohs(q->type)) { in AliasHandleQuestion()
438 printf("\nUnknown Type on Question %0x\n", ntohs(q->type)); in AliasHandleQuestion()
486 bcount = ntohs(q->rdlen); in AliasHandleResourceNB()
563 bcount = ntohs(q->rdlen); in AliasHandleResourceA()
622 bcount = ntohs(q->rdlen); in AliasHandleResourceNULL()
657 bcount = ntohs(q->rdlen); in AliasHandleResourceNS()
690 bcount = ntohs(q->rdlen); in AliasHandleResourceNBSTAT()
712 printf("type=%02x, count=%d\n", ntohs(q->type), count); in AliasHandleResource()
716 switch (ntohs(q->type)) { in AliasHandleResource()
741 ntohs(q->type) in AliasHandleResource()
782 pmax = (char *)uh + ntohs(uh->uh_ulen); in AliasHandleUdpNbtNS()
795 ntohs(nsh->qdcount), in AliasHandleUdpNbtNS()
796 ntohs(nsh->ancount), in AliasHandleUdpNbtNS()
797 ntohs(nsh->nscount), in AliasHandleUdpNbtNS()
798 ntohs(nsh->arcount), in AliasHandleUdpNbtNS()
804 if (ntohs(nsh->qdcount) != 0) { in AliasHandleUdpNbtNS()
806 ntohs(nsh->qdcount), in AliasHandleUdpNbtNS()
813 if (ntohs(nsh->ancount) != 0) { in AliasHandleUdpNbtNS()
815 ntohs(nsh->ancount), in AliasHandleUdpNbtNS()
822 if (ntohs(nsh->nscount) != 0) { in AliasHandleUdpNbtNS()
824 ntohs(nsh->nscount), in AliasHandleUdpNbtNS()
831 if (ntohs(nsh->arcount) != 0) { in AliasHandleUdpNbtNS()
833 ntohs(nsh->arcount), in AliasHandleUdpNbtNS()