diff --git a/lib/dns/include/dns/result.h b/lib/dns/include/dns/result.h index c2f5e5145e..3c20e078db 100644 --- a/lib/dns/include/dns/result.h +++ b/lib/dns/include/dns/result.h @@ -69,8 +69,9 @@ typedef unsigned int dns_result_t; #define DNS_R_NXRDATASET 42 #define DNS_R_BADDB 43 #define DNS_R_ZONECUT 44 +#define DNS_R_FORMERR 45 -#define DNS_R_LASTENTRY 44 /* Last entry on list. */ +#define DNS_R_LASTENTRY 45 /* Last entry on list. */ #define DNS_R_UNEXPECTED 0xFFFFFFFFL diff --git a/lib/dns/result.c b/lib/dns/result.c index b3a02bd1d8..2f02e8d3a0 100644 --- a/lib/dns/result.c +++ b/lib/dns/result.c @@ -65,6 +65,7 @@ static char *text_table[DNS_R_LASTENTRY + 1] = { "nxrdataset", /* 42 */ "bad database", /* 43 */ "zonecut", /* 44 */ + "format error in packet", /* 45 */ }; char *