Packet — DNS Message Header (RFC 1035)
Twelve bytes with a four-bit opcode and a four-bit response code packed either side of five single-bit flags, which is the layout most often drawn wrong because the flag byte is easier to describe in prose than to lay out. Complete over three 32-bit words.
Make it your own.
title "DNS message header (RFC 1035)"
width 32
bitorder msb
words 3
0-15: ID
16: QR
17-20: OPCODE
21: AA
22: TC
23: RD
24: RA
25-27: Z = 0
28-31: RCODE
32-47: QDCOUNT
48-63: ANCOUNT
64-79: NSCOUNT
80-95: ARCOUNT