add Formerr RCode

This commit is contained in:
bert hubert
2018-10-15 16:06:21 +02:00
parent e8bd8e1a7b
commit b4c09b7b4f

View File

@ -61,12 +61,12 @@ static_assert(sizeof(dnsheader) == 12, "dnsheader size must be 12");
// enums // enums
enum class RCode enum class RCode
{ {
Noerror = 0, Servfail = 2, Nxdomain = 3, Notimp = 4, Refused = 5, Notauth = 9, Badvers=16 Noerror = 0, Formerr = 1, Servfail = 2, Nxdomain = 3, Notimp = 4, Refused = 5, Notauth = 9, Badvers=16
}; };
// this makes enums printable, which is nice // this makes enums printable, which is nice
SMARTENUMSTART(RCode) SMARTENUMSTART(RCode)
SENUM7(RCode, Noerror, Servfail, Nxdomain, Notimp, Refused, Notauth, Badvers) SENUM8(RCode, Noerror, Formerr, Servfail, Nxdomain, Notimp, Refused, Notauth, Badvers)
SMARTENUMEND(RCode); SMARTENUMEND(RCode);
//! Stores the type of a DNS query or resource record //! Stores the type of a DNS query or resource record