mafintosh / dns-packet

An abstract-encoding compliant module for encoding / decoding DNS packets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decode RCODE field

nponeccop opened this issue · comments

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