mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
RRTYPE -> TYPE for unknown types
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: gen.c,v 1.54 2000/08/01 01:22:24 tale Exp $ */
|
||||
/* $Id: gen.c,v 1.55 2000/11/07 23:44:32 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -629,7 +629,7 @@ main(int argc, char **argv) {
|
||||
for (i = 0 ; i <= 255 ; i++) {
|
||||
ttn = &typenames[i];
|
||||
if (ttn->typename[0] == 0) {
|
||||
printf("\t{ \"RRTYPE%d\", "
|
||||
printf("\t{ \"TYPE%d\", "
|
||||
"DNS_RDATATYPEATTR_UNKNOWN"
|
||||
"}%s\n", i, PRINT_COMMA(i));
|
||||
} else {
|
||||
|
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rdata.c,v 1.116 2000/10/31 03:21:57 marka Exp $ */
|
||||
/* $Id: rdata.c,v 1.117 2000/11/07 23:44:33 bwelling Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <ctype.h>
|
||||
@@ -1114,10 +1114,10 @@ dns_rdatatype_fromtext(dns_rdatatype_t *typep, isc_textregion_t *source) {
|
||||
|
||||
isc_result_t
|
||||
dns_rdatatype_totext(dns_rdatatype_t type, isc_buffer_t *target) {
|
||||
char buf[sizeof "RRTYPE4294967296"];
|
||||
char buf[sizeof "TYPE4294967296"];
|
||||
|
||||
if (type > 255) {
|
||||
sprintf(buf, "RRTYPE%u", type);
|
||||
sprintf(buf, "TYPE%u", type);
|
||||
return (str_totext(buf, target));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user