Home
last modified time | relevance | path

Searched refs:DNS__16BIT (Results 1 – 4 of 4) sorted by relevance

/external/c-ares/
Dares_dns.h20 #define DNS__16BIT(p) (((p)[0] << 8) | (p)[1]) macro
34 #define DNS__16BIT(p) ntohs(*(unsigned short*)(p))
41 #define DNS_HEADER_QID(h) DNS__16BIT(h)
50 #define DNS_HEADER_QDCOUNT(h) DNS__16BIT((h) + 4)
51 #define DNS_HEADER_ANCOUNT(h) DNS__16BIT((h) + 6)
52 #define DNS_HEADER_NSCOUNT(h) DNS__16BIT((h) + 8)
53 #define DNS_HEADER_ARCOUNT(h) DNS__16BIT((h) + 10)
71 #define DNS_QUESTION_TYPE(q) DNS__16BIT(q)
72 #define DNS_QUESTION_CLASS(q) DNS__16BIT((q) + 2)
79 #define DNS_RR_TYPE(r) DNS__16BIT(r)
[all …]
Dares_parse_srv_reply.c142 srv_curr->priority = DNS__16BIT(vptr); in ares_parse_srv_reply()
144 srv_curr->weight = DNS__16BIT(vptr); in ares_parse_srv_reply()
146 srv_curr->port = DNS__16BIT(vptr); in ares_parse_srv_reply()
Dadig.c652 printf("\t%d", DNS__16BIT(aptr)); in display_rr()
726 printf("\t%d", DNS__16BIT(aptr)); in display_rr()
727 printf(" %d", DNS__16BIT(aptr + 2)); in display_rr()
728 printf(" %d", DNS__16BIT(aptr + 4)); in display_rr()
739 printf("\t%d", DNS__16BIT(aptr)); /* order */ in display_rr()
740 printf(" %d\n", DNS__16BIT(aptr + 2)); /* preference */ in display_rr()
Dares_parse_mx_reply.c137 mx_curr->priority = DNS__16BIT(vptr); in ares_parse_mx_reply()