• Home
  • Raw
  • Download

Lines Matching defs:h

63 #define DNS_HEADER_QID(h)               DNS__16BIT(h)  argument
64 #define DNS_HEADER_QR(h) (((h)[2] >> 7) & 0x1) argument
65 #define DNS_HEADER_OPCODE(h) (((h)[2] >> 3) & 0xf) argument
66 #define DNS_HEADER_AA(h) (((h)[2] >> 2) & 0x1) argument
67 #define DNS_HEADER_TC(h) (((h)[2] >> 1) & 0x1) argument
68 #define DNS_HEADER_RD(h) ((h)[2] & 0x1) argument
69 #define DNS_HEADER_RA(h) (((h)[3] >> 7) & 0x1) argument
70 #define DNS_HEADER_Z(h) (((h)[3] >> 4) & 0x7) argument
71 #define DNS_HEADER_RCODE(h) ((h)[3] & 0xf) argument
72 #define DNS_HEADER_QDCOUNT(h) DNS__16BIT((h) + 4) argument
73 #define DNS_HEADER_ANCOUNT(h) DNS__16BIT((h) + 6) argument
74 #define DNS_HEADER_NSCOUNT(h) DNS__16BIT((h) + 8) argument
75 #define DNS_HEADER_ARCOUNT(h) DNS__16BIT((h) + 10) argument
78 #define DNS_HEADER_SET_QID(h, v) DNS__SET16BIT(h, v) argument
79 #define DNS_HEADER_SET_QR(h, v) ((h)[2] |= (unsigned char)(((v) & 0x1) << 7)) argument
80 #define DNS_HEADER_SET_OPCODE(h, v) ((h)[2] |= (unsigned char)(((v) & 0xf) << 3)) argument
81 #define DNS_HEADER_SET_AA(h, v) ((h)[2] |= (unsigned char)(((v) & 0x1) << 2)) argument
82 #define DNS_HEADER_SET_TC(h, v) ((h)[2] |= (unsigned char)(((v) & 0x1) << 1)) argument
83 #define DNS_HEADER_SET_RD(h, v) ((h)[2] |= (unsigned char)((v) & 0x1)) argument
84 #define DNS_HEADER_SET_RA(h, v) ((h)[3] |= (unsigned char)(((v) & 0x1) << 7)) argument
85 #define DNS_HEADER_SET_Z(h, v) ((h)[3] |= (unsigned char)(((v) & 0x7) << 4)) argument
86 #define DNS_HEADER_SET_RCODE(h, v) ((h)[3] |= (unsigned char)((v) & 0xf)) argument
87 #define DNS_HEADER_SET_QDCOUNT(h, v) DNS__SET16BIT((h) + 4, v) argument
88 #define DNS_HEADER_SET_ANCOUNT(h, v) DNS__SET16BIT((h) + 6, v) argument
89 #define DNS_HEADER_SET_NSCOUNT(h, v) DNS__SET16BIT((h) + 8, v) argument
90 #define DNS_HEADER_SET_ARCOUNT(h, v) DNS__SET16BIT((h) + 10, v) argument