From f92381fe0f862488a24bae64e403726e763a4367 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Thu, 29 Apr 1999 08:19:33 +0000 Subject: [PATCH] Allocate DNS_R_FORMERR --- lib/dns/include/dns/result.h | 3 ++- lib/dns/result.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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 *