miekg/dns — pull request #135 by FiloSottile (2014-09-26 11:20:14+00:00)
Title: Add support for extended RCODEs and detect bad RCODEs

A too high RCODE previously would have simply corrupted the packet.

Logic put in PackBuffer because Rcode is public and can be changed anytime