diff --git a/lib/dns/include/dns/result.h b/lib/dns/include/dns/result.h index 59343b8aed..9c44c225c9 100644 --- a/lib/dns/include/dns/result.h +++ b/lib/dns/include/dns/result.h @@ -41,8 +41,10 @@ typedef unsigned int dns_result_t; #define DNS_R_EXTRADATA 18 #define DNS_R_TEXTTOLONG 19 #define DNS_R_RANGE 20 +#define DNS_R_EXISTS 21 +#define DNS_R_NOTFOUND 22 -#define DNS_R_LASTENTRY 20 /* Last entry on list. */ +#define DNS_R_LASTENTRY 22 /* Last entry on list. */ #define DNS_R_UNEXPECTED 0xFFFFFFFFL diff --git a/lib/dns/result.c b/lib/dns/result.c index c38158dd13..7efc1db220 100644 --- a/lib/dns/result.c +++ b/lib/dns/result.c @@ -41,6 +41,8 @@ static char *text_table[DNS_R_LASTENTRY + 1] = { "extra input data", /* 18 */ "text too long", /* 19 */ "out of range", /* 20 */ + "already exists", /* 21 */ + "not found", /* 22 */ }; char *