mafintosh / dns-packet

An abstract-encoding compliant module for encoding / decoding DNS packets
MIT License
206 stars 71 forks source link

Decode RCODE field #11

Closed nponeccop closed 6 years ago

nponeccop commented 7 years ago

RCODE is the lower 4 bits of the flags (`flags & 0xF), and only 10 of the 16 codes are allocated.

See https://tools.ietf.org/html/rfc6895#page-4