Lines Matching refs:DNS__SET16BIT
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)
108 #define DNS_RR_SET_CLASS(r, v) DNS__SET16BIT((r) + 2, v)
110 #define DNS_RR_SET_LEN(r, v) DNS__SET16BIT((r) + 8, v)