Lines Matching refs:DNS__16BIT
20 #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)
80 #define DNS_RR_CLASS(r) DNS__16BIT((r) + 2)
82 #define DNS_RR_LEN(r) DNS__16BIT((r) + 8)