Lines Matching refs:ntohs
86 if (ntohs(*ah->dport) == NETBIOS_DGM_PORT_NUMBER
87 || ntohs(*ah->sport) == NETBIOS_DGM_PORT_NUMBER)
106 if (ntohs(*ah->dport) == NETBIOS_NS_PORT_NUMBER
107 || ntohs(*ah->sport) == NETBIOS_NS_PORT_NUMBER)
353 pmax = (char *)uh + ntohs(uh->uh_ulen);
382 printf("%s:%d-->", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port));
402 printf("%s:%d\n", inet_ntoa(ndh->source_ip), ntohs(ndh->source_port));
436 switch (ntohs(q->type)) {
443 printf("\nUnknown Type on Question %0x\n", ntohs(q->type));
487 bcount = ntohs(q->rdlen);
558 bcount = ntohs(q->rdlen);
616 bcount = ntohs(q->rdlen);
651 bcount = ntohs(q->rdlen);
684 bcount = ntohs(q->rdlen);
707 printf("type=%02x, count=%d\n", ntohs(q->type), count);
711 switch (ntohs(q->type)) {
751 ntohs(q->type)
792 pmax = (char *)uh + ntohs(uh->uh_ulen);
805 ntohs(nsh->qdcount),
806 ntohs(nsh->ancount),
807 ntohs(nsh->nscount),
808 ntohs(nsh->arcount),
814 if (ntohs(nsh->qdcount) != 0) {
816 ntohs(nsh->qdcount),
823 if (ntohs(nsh->ancount) != 0) {
825 ntohs(nsh->ancount),
832 if (ntohs(nsh->nscount) != 0) {
834 ntohs(nsh->nscount),
841 if (ntohs(nsh->arcount) != 0) {
843 ntohs(nsh->arcount),