Searched refs:DNS__SET16BIT (Results 1 – 1 of 1) sorted by relevance
/third_party/node/deps/cares/include/ |
D | ares_dns.h | 46 #define DNS__SET16BIT(p, v) (((p)[0] = (unsigned char)(((v) >> 8) & 0xff)), \ macro 58 #define DNS__SET16BIT(p, v) *(unsigned short*)(p) = htons(v) 78 #define DNS_HEADER_SET_QID(h, v) DNS__SET16BIT(h, v) 87 #define DNS_HEADER_SET_QDCOUNT(h, v) DNS__SET16BIT((h) + 4, v) 88 #define DNS_HEADER_SET_ANCOUNT(h, v) DNS__SET16BIT((h) + 6, v) 89 #define DNS_HEADER_SET_NSCOUNT(h, v) DNS__SET16BIT((h) + 8, v) 90 #define DNS_HEADER_SET_ARCOUNT(h, v) DNS__SET16BIT((h) + 10, v) 97 #define DNS_QUESTION_SET_TYPE(q, v) DNS__SET16BIT(q, v) 98 #define DNS_QUESTION_SET_CLASS(q, v) DNS__SET16BIT((q) + 2, v) 107 #define DNS_RR_SET_TYPE(r, v) DNS__SET16BIT(r, v) [all …]
|