Commit 5f582715 authored by Daniel Salzman's avatar Daniel Salzman

zscanner: unify error codes

parent 5513555b
......@@ -246,16 +246,15 @@ src/utils/nsupdate/nsupdate_params.h
src/zscanner/Makefile.am
src/zscanner/error.c
src/zscanner/error.h
src/zscanner/file_loader.c
src/zscanner/file_loader.h
src/zscanner/functions.c
src/zscanner/functions.h
src/zscanner/loader.c
src/zscanner/loader.h
src/zscanner/scanner.h
src/zscanner/scanner.rl
src/zscanner/scanner_body.rl
src/zscanner/scanner_functions.c
src/zscanner/scanner_functions.h
src/zscanner/tests/processing.c
src/zscanner/tests/processing.h
src/zscanner/tests/runtests.c
src/zscanner/tests/tests.c
src/zscanner/tests/tests.h
src/zscanner/tests/zscanner-tool.c
......
......@@ -247,7 +247,7 @@ knot_zone_contents_t *zonefile_load(zloader_t *loader)
zcreator_t *zc = loader->creator;
assert(zc);
int ret = zs_loader_process(loader->file_loader);
if (ret != ZSCANNER_OK) {
if (ret != ZS_OK) {
log_zone_error("%s: zone file could not be loaded (%s).\n",
loader->source, zs_strerror(ret));
goto fail;
......
......@@ -28,138 +28,138 @@ typedef struct {
#define ERR_ITEM(code, text) { code, text, #code }
const err_table_t err_msgs[] = {
ERR_ITEM( ZSCANNER_OK, "OK" ),
ERR_ITEM( ZS_OK, "OK" ),
/* Zone file loader errors. */
ERR_ITEM( FLOADER_EFSTAT,
ERR_ITEM( ZS_LOADER_FSTAT,
"Fstat error." ),
ERR_ITEM( FLOADER_EDIRECTORY,
ERR_ITEM( ZS_LOADER_DIRECTORY,
"Zone file is a directory." ),
ERR_ITEM( FLOADER_EEMPTY,
ERR_ITEM( ZS_LOADER_EMPTY,
"Empty zone file." ),
ERR_ITEM( FLOADER_EMMAP,
ERR_ITEM( ZS_LOADER_MMAP,
"Mmap error." ),
ERR_ITEM( FLOADER_EMUNMAP,
ERR_ITEM( ZS_LOADER_MUNMAP,
"Munmap error." ),
ERR_ITEM( FLOADER_ESCANNER,
ERR_ITEM( ZS_LOADER_SCANNER,
"Zone processing error." ),
/* Zone scanner errors. */
ERR_ITEM( ZSCANNER_DOS_NEWLINE,
ERR_ITEM( ZS_DOS_NEWLINE,
"Unsupported CRLF newline. Please, remove CR bytes." ),
ERR_ITEM( ZSCANNER_UNCOVERED_STATE,
ERR_ITEM( ZS_UNCOVERED_STATE,
"General scanner error." ),
ERR_ITEM( ZSCANNER_UNCLOSED_MULTILINE,
ERR_ITEM( ZS_UNCLOSED_MULTILINE,
"Unclosed last multiline block." ),
ERR_ITEM( ZSCANNER_ELEFT_PARENTHESIS,
ERR_ITEM( ZS_LEFT_PARENTHESIS,
"Too many left parentheses." ),
ERR_ITEM( ZSCANNER_ERIGHT_PARENTHESIS,
ERR_ITEM( ZS_RIGHT_PARENTHESIS,
"Too many right parentheses." ),
ERR_ITEM( ZSCANNER_EUNSUPPORTED_TYPE,
ERR_ITEM( ZS_UNSUPPORTED_TYPE,
"Unsupported record type." ),
ERR_ITEM( ZSCANNER_EBAD_PREVIOUS_OWNER,
ERR_ITEM( ZS_BAD_PREVIOUS_OWNER,
"Previous owner is invalid." ),
ERR_ITEM( ZSCANNER_EBAD_DNAME_CHAR,
ERR_ITEM( ZS_BAD_DNAME_CHAR,
"Invalid domain name character." ),
ERR_ITEM( ZSCANNER_EBAD_OWNER,
ERR_ITEM( ZS_BAD_OWNER,
"Owner is invalid." ),
ERR_ITEM( ZSCANNER_ELABEL_OVERFLOW,
ERR_ITEM( ZS_LABEL_OVERFLOW,
"Maximal domain name label length has exceeded." ),
ERR_ITEM( ZSCANNER_EDNAME_OVERFLOW,
ERR_ITEM( ZS_DNAME_OVERFLOW,
"Maximal domain name length has exceeded." ),
ERR_ITEM( ZSCANNER_EBAD_NUMBER,
ERR_ITEM( ZS_BAD_NUMBER,
"Invalid number." ),
ERR_ITEM( ZSCANNER_ENUMBER64_OVERFLOW,
ERR_ITEM( ZS_NUMBER64_OVERFLOW,
"Number is too big." ),
ERR_ITEM( ZSCANNER_ENUMBER32_OVERFLOW,
ERR_ITEM( ZS_NUMBER32_OVERFLOW,
"Number is bigger than 32 bits." ),
ERR_ITEM( ZSCANNER_ENUMBER16_OVERFLOW,
ERR_ITEM( ZS_NUMBER16_OVERFLOW,
"Number is bigger than 16 bits." ),
ERR_ITEM( ZSCANNER_ENUMBER8_OVERFLOW,
ERR_ITEM( ZS_NUMBER8_OVERFLOW,
"Number is bigger than 8 bits." ),
ERR_ITEM( ZSCANNER_EFLOAT_OVERFLOW,
ERR_ITEM( ZS_FLOAT_OVERFLOW,
"Float number overflow." ),
ERR_ITEM( ZSCANNER_ERDATA_OVERFLOW,
ERR_ITEM( ZS_RDATA_OVERFLOW,
"Maximal record data length has exceeded." ),
ERR_ITEM( ZSCANNER_EITEM_OVERFLOW,
ERR_ITEM( ZS_ITEM_OVERFLOW,
"Maximal item length has exceeded." ),
ERR_ITEM( ZSCANNER_EBAD_ADDRESS_CHAR,
ERR_ITEM( ZS_BAD_ADDRESS_CHAR,
"Invalid address character." ),
ERR_ITEM( ZSCANNER_EBAD_IPV4,
ERR_ITEM( ZS_BAD_IPV4,
"Invalid IPv4 address." ),
ERR_ITEM( ZSCANNER_EBAD_IPV6,
ERR_ITEM( ZS_BAD_IPV6,
"Invalid IPv6 address." ),
ERR_ITEM( ZSCANNER_EBAD_GATEWAY,
ERR_ITEM( ZS_BAD_GATEWAY,
"Invalid gateway." ),
ERR_ITEM( ZSCANNER_EBAD_GATEWAY_KEY,
ERR_ITEM( ZS_BAD_GATEWAY_KEY,
"Invalid gateway key." ),
ERR_ITEM( ZSCANNER_EBAD_APL,
ERR_ITEM( ZS_BAD_APL,
"Invalid address prefix list." ),
ERR_ITEM( ZSCANNER_EBAD_RDATA,
ERR_ITEM( ZS_BAD_RDATA,
"Invalid record data." ),
ERR_ITEM( ZSCANNER_EBAD_HEX_RDATA,
ERR_ITEM( ZS_BAD_HEX_RDATA,
"Invalid record data in hex format." ),
ERR_ITEM( ZSCANNER_EBAD_HEX_CHAR,
ERR_ITEM( ZS_BAD_HEX_CHAR,
"Invalid hexadecimal character." ),
ERR_ITEM( ZSCANNER_EBAD_BASE64_CHAR,
ERR_ITEM( ZS_BAD_BASE64_CHAR,
"Invalid Base64 character." ),
ERR_ITEM( ZSCANNER_EBAD_BASE32HEX_CHAR,
ERR_ITEM( ZS_BAD_BASE32HEX_CHAR,
"Invalid Base32hex character." ),
ERR_ITEM( ZSCANNER_EBAD_REST,
ERR_ITEM( ZS_BAD_REST,
"Unexpected data." ),
ERR_ITEM( ZSCANNER_EBAD_TIMESTAMP_CHAR,
ERR_ITEM( ZS_BAD_TIMESTAMP_CHAR,
"Invalid timestamp character." ),
ERR_ITEM( ZSCANNER_EBAD_TIMESTAMP_LENGTH,
ERR_ITEM( ZS_BAD_TIMESTAMP_LENGTH,
"Invalid timestamp length." ),
ERR_ITEM( ZSCANNER_EBAD_TIMESTAMP,
ERR_ITEM( ZS_BAD_TIMESTAMP,
"Invalid timestamp." ),
ERR_ITEM( ZSCANNER_EBAD_DATE,
ERR_ITEM( ZS_BAD_DATE,
"Invalid date." ),
ERR_ITEM( ZSCANNER_EBAD_TIME,
ERR_ITEM( ZS_BAD_TIME,
"Invalid time." ),
ERR_ITEM( ZSCANNER_EBAD_TIME_UNIT,
ERR_ITEM( ZS_BAD_TIME_UNIT,
"Invalid time unit." ),
ERR_ITEM( ZSCANNER_EBAD_BITMAP,
ERR_ITEM( ZS_BAD_BITMAP,
"Invalid bitmap." ),
ERR_ITEM( ZSCANNER_ETEXT_OVERFLOW,
ERR_ITEM( ZS_TEXT_OVERFLOW,
"Text is too long." ),
ERR_ITEM( ZSCANNER_EBAD_TEXT_CHAR,
ERR_ITEM( ZS_BAD_TEXT_CHAR,
"Invalid text character." ),
ERR_ITEM( ZSCANNER_EBAD_TEXT,
ERR_ITEM( ZS_BAD_TEXT,
"Invalid text string." ),
ERR_ITEM( ZSCANNER_EBAD_DIRECTIVE,
ERR_ITEM( ZS_BAD_DIRECTIVE,
"Invalid directive." ),
ERR_ITEM( ZSCANNER_EBAD_TTL,
ERR_ITEM( ZS_BAD_TTL,
"Invalid zone TTL." ),
ERR_ITEM( ZSCANNER_EBAD_ORIGIN,
ERR_ITEM( ZS_BAD_ORIGIN,
"Invalid FQDN zone origin." ),
ERR_ITEM( ZSCANNER_EBAD_INCLUDE_FILENAME,
ERR_ITEM( ZS_BAD_INCLUDE_FILENAME,
"Invalid filename in include directive." ),
ERR_ITEM( ZSCANNER_EBAD_INCLUDE_ORIGIN,
ERR_ITEM( ZS_BAD_INCLUDE_ORIGIN,
"Invalid origin in include directive." ),
ERR_ITEM( ZSCANNER_EUNPROCESSED_INCLUDE,
ERR_ITEM( ZS_UNPROCESSED_INCLUDE,
"Include file processing error." ),
ERR_ITEM( ZSCANNER_EUNOPENED_INCLUDE,
ERR_ITEM( ZS_UNOPENED_INCLUDE,
"Include file opening error." ),
ERR_ITEM( ZSCANNER_EBAD_RDATA_LENGTH,
ERR_ITEM( ZS_BAD_RDATA_LENGTH,
"The rdata length statement is incorrect." ),
ERR_ITEM( ZSCANNER_ECANNOT_TEXT_DATA,
ERR_ITEM( ZS_CANNOT_TEXT_DATA,
"Unable to process text form for this type." ),
ERR_ITEM( ZSCANNER_EBAD_LOC_DATA,
ERR_ITEM( ZS_BAD_LOC_DATA,
"Invalid zone location data." ),
ERR_ITEM( ZSCANNER_EUNKNOWN_BLOCK,
ERR_ITEM( ZS_UNKNOWN_BLOCK,
"Unknown rdata block." ),
ERR_ITEM( ZSCANNER_EBAD_ALGORITHM,
ERR_ITEM( ZS_BAD_ALGORITHM,
"Invalid algorithm." ),
ERR_ITEM( ZSCANNER_EBAD_CERT_TYPE,
ERR_ITEM( ZS_BAD_CERT_TYPE,
"Invalid certificate type." ),
ERR_ITEM( ZSCANNER_EBAD_EUI_LENGTH,
ERR_ITEM( ZS_BAD_EUI_LENGTH,
"Invalid EUI length." ),
ERR_ITEM( ZSCANNER_EBAD_L64_LENGTH,
ERR_ITEM( ZS_BAD_L64_LENGTH,
"Invalid 64-bit locator." ),
ERR_ITEM( ZSCANNER_EBAD_CHAR_COLON,
ERR_ITEM( ZS_BAD_CHAR_COLON,
"Missing colon character." ),
ERR_ITEM( ZSCANNER_EBAD_CHAR_DASH,
ERR_ITEM( ZS_BAD_CHAR_DASH,
"Missing dash character." ),
ERR_ITEM( 0, NULL ) // Terminator
......
......@@ -26,73 +26,73 @@
#define _ZSCANNER__ERROR_H_
enum err_codes {
ZSCANNER_OK = 0,
ZS_OK = 0,
FLOADER_EFSTAT = -1000,
FLOADER_EDIRECTORY,
FLOADER_EEMPTY,
FLOADER_EMMAP,
FLOADER_EMUNMAP,
FLOADER_ESCANNER,
ZS_LOADER_FSTAT = -1000,
ZS_LOADER_DIRECTORY,
ZS_LOADER_EMPTY,
ZS_LOADER_MMAP,
ZS_LOADER_MUNMAP,
ZS_LOADER_SCANNER,
ZSCANNER_DOS_NEWLINE,
ZSCANNER_UNCOVERED_STATE,
ZSCANNER_UNCLOSED_MULTILINE,
ZSCANNER_ELEFT_PARENTHESIS,
ZSCANNER_ERIGHT_PARENTHESIS,
ZSCANNER_EUNSUPPORTED_TYPE,
ZSCANNER_EBAD_PREVIOUS_OWNER,
ZSCANNER_EBAD_DNAME_CHAR,
ZSCANNER_EBAD_OWNER,
ZSCANNER_ELABEL_OVERFLOW,
ZSCANNER_EDNAME_OVERFLOW,
ZSCANNER_EBAD_NUMBER,
ZSCANNER_ENUMBER64_OVERFLOW,
ZSCANNER_ENUMBER32_OVERFLOW,
ZSCANNER_ENUMBER16_OVERFLOW,
ZSCANNER_ENUMBER8_OVERFLOW,
ZSCANNER_EFLOAT_OVERFLOW,
ZSCANNER_ERDATA_OVERFLOW,
ZSCANNER_EITEM_OVERFLOW,
ZSCANNER_EBAD_ADDRESS_CHAR,
ZSCANNER_EBAD_IPV4,
ZSCANNER_EBAD_IPV6,
ZSCANNER_EBAD_GATEWAY,
ZSCANNER_EBAD_GATEWAY_KEY,
ZSCANNER_EBAD_APL,
ZSCANNER_EBAD_RDATA,
ZSCANNER_EBAD_HEX_RDATA,
ZSCANNER_EBAD_HEX_CHAR,
ZSCANNER_EBAD_BASE64_CHAR,
ZSCANNER_EBAD_BASE32HEX_CHAR,
ZSCANNER_EBAD_REST,
ZSCANNER_EBAD_TIMESTAMP_CHAR,
ZSCANNER_EBAD_TIMESTAMP_LENGTH,
ZSCANNER_EBAD_TIMESTAMP,
ZSCANNER_EBAD_DATE,
ZSCANNER_EBAD_TIME,
ZSCANNER_EBAD_TIME_UNIT,
ZSCANNER_EBAD_BITMAP,
ZSCANNER_ETEXT_OVERFLOW,
ZSCANNER_EBAD_TEXT_CHAR,
ZSCANNER_EBAD_TEXT,
ZSCANNER_EBAD_DIRECTIVE,
ZSCANNER_EBAD_TTL,
ZSCANNER_EBAD_ORIGIN,
ZSCANNER_EBAD_INCLUDE_FILENAME,
ZSCANNER_EBAD_INCLUDE_ORIGIN,
ZSCANNER_EUNPROCESSED_INCLUDE,
ZSCANNER_EUNOPENED_INCLUDE,
ZSCANNER_EBAD_RDATA_LENGTH,
ZSCANNER_ECANNOT_TEXT_DATA,
ZSCANNER_EBAD_LOC_DATA,
ZSCANNER_EUNKNOWN_BLOCK,
ZSCANNER_EBAD_ALGORITHM,
ZSCANNER_EBAD_CERT_TYPE,
ZSCANNER_EBAD_EUI_LENGTH,
ZSCANNER_EBAD_L64_LENGTH,
ZSCANNER_EBAD_CHAR_COLON,
ZSCANNER_EBAD_CHAR_DASH
ZS_DOS_NEWLINE,
ZS_UNCOVERED_STATE,
ZS_UNCLOSED_MULTILINE,
ZS_LEFT_PARENTHESIS,
ZS_RIGHT_PARENTHESIS,
ZS_UNSUPPORTED_TYPE,
ZS_BAD_PREVIOUS_OWNER,
ZS_BAD_DNAME_CHAR,
ZS_BAD_OWNER,
ZS_LABEL_OVERFLOW,
ZS_DNAME_OVERFLOW,
ZS_BAD_NUMBER,
ZS_NUMBER64_OVERFLOW,
ZS_NUMBER32_OVERFLOW,
ZS_NUMBER16_OVERFLOW,
ZS_NUMBER8_OVERFLOW,
ZS_FLOAT_OVERFLOW,
ZS_RDATA_OVERFLOW,
ZS_ITEM_OVERFLOW,
ZS_BAD_ADDRESS_CHAR,
ZS_BAD_IPV4,
ZS_BAD_IPV6,
ZS_BAD_GATEWAY,
ZS_BAD_GATEWAY_KEY,
ZS_BAD_APL,
ZS_BAD_RDATA,
ZS_BAD_HEX_RDATA,
ZS_BAD_HEX_CHAR,
ZS_BAD_BASE64_CHAR,
ZS_BAD_BASE32HEX_CHAR,
ZS_BAD_REST,
ZS_BAD_TIMESTAMP_CHAR,
ZS_BAD_TIMESTAMP_LENGTH,
ZS_BAD_TIMESTAMP,
ZS_BAD_DATE,
ZS_BAD_TIME,
ZS_BAD_TIME_UNIT,
ZS_BAD_BITMAP,
ZS_TEXT_OVERFLOW,
ZS_BAD_TEXT_CHAR,
ZS_BAD_TEXT,
ZS_BAD_DIRECTIVE,
ZS_BAD_TTL,
ZS_BAD_ORIGIN,
ZS_BAD_INCLUDE_FILENAME,
ZS_BAD_INCLUDE_ORIGIN,
ZS_UNPROCESSED_INCLUDE,
ZS_UNOPENED_INCLUDE,
ZS_BAD_RDATA_LENGTH,
ZS_CANNOT_TEXT_DATA,
ZS_BAD_LOC_DATA,
ZS_UNKNOWN_BLOCK,
ZS_BAD_ALGORITHM,
ZS_BAD_CERT_TYPE,
ZS_BAD_EUI_LENGTH,
ZS_BAD_L64_LENGTH,
ZS_BAD_CHAR_COLON,
ZS_BAD_CHAR_DASH
};
/*!
......
......@@ -743,7 +743,7 @@ int date_to_timestamp(uint8_t *buff, uint32_t *timestamp)
second = 10 * (buff[12] - '0') + (buff[13] - '0');
if (year < 1970 || year > 2105 || month < 1 || month > 12 || day < 1) {
return ZSCANNER_EBAD_DATE;
return ZS_BAD_DATE;
} else {
year -= 1970;
}
......@@ -753,14 +753,14 @@ int date_to_timestamp(uint8_t *buff, uint32_t *timestamp)
leap_day = 1; // Add one day in case of leap year.
} else if (month == 2 &&
day > (uint32_t)(days_in_months[month] + 1)) {
return ZSCANNER_EBAD_DATE;
return ZS_BAD_DATE;
}
} else if (day > days_in_months[month]){
return ZSCANNER_EBAD_DATE;
return ZS_BAD_DATE;
}
if (hour > 23 || minute > 59 || second > 59) {
return ZSCANNER_EBAD_TIME;
return ZS_BAD_TIME;
}
*timestamp = hour * 3600 + minute * 60 + second +
......@@ -768,7 +768,7 @@ int date_to_timestamp(uint8_t *buff, uint32_t *timestamp)
days_across_months[month] +
day - 1 + leap_day) * 86400;
return ZSCANNER_OK;
return ZS_OK;
}
void wire_dname_to_str(const uint8_t *data,
......
......@@ -100,17 +100,17 @@ int zs_loader_process(zs_loader_t *fl)
// Getting file information.
if (fstat(fl->fd, &file_stat) == -1) {
return FLOADER_EFSTAT;
return ZS_LOADER_FSTAT;
}
// Check for directory.
if (S_ISDIR(file_stat.st_mode)) {
return FLOADER_EDIRECTORY;
return ZS_LOADER_DIRECTORY;
}
// Check for empty file.
if (file_stat.st_size == 0) {
return FLOADER_EEMPTY;
return ZS_LOADER_EMPTY;
}
// Block size adjustment to multiple of page size.
......@@ -139,7 +139,7 @@ int zs_loader_process(zs_loader_t *fl)
fl->fd,
scanner_start);
if (data == MAP_FAILED) {
return FLOADER_EMMAP;
return ZS_LOADER_MMAP;
}
// Scan zone file.
......@@ -158,14 +158,14 @@ int zs_loader_process(zs_loader_t *fl)
// Zone file block unmapping.
if (munmap(data, block_size) == -1) {
return FLOADER_EMUNMAP;
return ZS_LOADER_MUNMAP;
}
}
// Check for scanner return.
if (ret != 0) {
return FLOADER_ESCANNER;
return ZS_LOADER_SCANNER;
}
return ZSCANNER_OK;
return ZS_OK;
}
This diff is collapsed.
This diff is collapsed.
......@@ -202,7 +202,7 @@ int zs_scanner_process(const char *start,
// Check if scanner state machine is in uncovered state.
if (cs == zone_scanner_error) {
ERR(ZSCANNER_UNCOVERED_STATE);
ERR(ZS_UNCOVERED_STATE);
s->error_counter++;
// Fill error context data.
......@@ -229,7 +229,7 @@ int zs_scanner_process(const char *start,
// Check unclosed multiline record.
if (is_complete && s->multiline) {
ERR(ZSCANNER_UNCLOSED_MULTILINE);
ERR(ZS_UNCLOSED_MULTILINE);
s->error_counter++;
s->process_error(s);
}
......
This diff is collapsed.
......@@ -64,5 +64,5 @@ RRTTL=00000001
RTYPE=0002
RDATA=00
------
ERROR=ZSCANNER_ELEFT_PARENTHESIS
ERROR=ZS_LEFT_PARENTHESIS
------
ERROR=ZSCANNER_UNCLOSED_MULTILINE
ERROR=ZS_UNCLOSED_MULTILINE
------
......@@ -100,25 +100,25 @@ RRTTL=00000001
RTYPE=0002
RDATA=00
------
WARNG=ZSCANNER_EBAD_OWNER
WARNG=ZS_BAD_OWNER
------
WARNG=ZSCANNER_EBAD_DNAME_CHAR
WARNG=ZS_BAD_DNAME_CHAR
------
WARNG=ZSCANNER_EBAD_PREVIOUS_OWNER
WARNG=ZS_BAD_PREVIOUS_OWNER
------
WARNG=ZSCANNER_EBAD_DNAME_CHAR
WARNG=ZS_BAD_DNAME_CHAR
------
WARNG=ZSCANNER_EBAD_DNAME_CHAR
WARNG=ZS_BAD_DNAME_CHAR
------
WARNG=ZSCANNER_EBAD_DNAME_CHAR
WARNG=ZS_BAD_DNAME_CHAR
------
WARNG=ZSCANNER_EBAD_NUMBER
WARNG=ZS_BAD_NUMBER
------
WARNG=ZSCANNER_EBAD_NUMBER
WARNG=ZS_BAD_NUMBER
------
WARNG=ZSCANNER_ELABEL_OVERFLOW
WARNG=ZS_LABEL_OVERFLOW
------
WARNG=ZSCANNER_EDNAME_OVERFLOW
WARNG=ZS_DNAME_OVERFLOW
------
WARNG=ZSCANNER_EDNAME_OVERFLOW
WARNG=ZS_DNAME_OVERFLOW
------
......@@ -10,7 +10,7 @@ RRTTL=00000001
RTYPE=0002
RDATA=00
------
WARNG=ZSCANNER_EUNSUPPORTED_TYPE
WARNG=ZS_UNSUPPORTED_TYPE
------
WARNG=ZSCANNER_EUNSUPPORTED_TYPE
WARNG=ZS_UNSUPPORTED_TYPE
------
......@@ -88,13 +88,13 @@ RRTTL=00000079
RTYPE=0002
RDATA=00
------
WARNG=ZSCANNER_EBAD_NUMBER
WARNG=ZS_BAD_NUMBER
------
WARNG=ZSCANNER_ENUMBER32_OVERFLOW
WARNG=ZS_NUMBER32_OVERFLOW
------
WARNG=ZSCANNER_ENUMBER32_OVERFLOW
WARNG=ZS_NUMBER32_OVERFLOW
------
WARNG=ZSCANNER_ENUMBER32_OVERFLOW
WARNG=ZS_NUMBER32_OVERFLOW
------
WARNG=ZSCANNER_EBAD_TIME_UNIT
WARNG=ZS_BAD_TIME_UNIT
------
......@@ -82,5 +82,5 @@ RRTTL=00000001
RTYPE=0002
RDATA=00
------
ERROR=ZSCANNER_EBAD_ORIGIN
ERROR=ZS_BAD_ORIGIN
------
ERROR=ZSCANNER_EBAD_ORIGIN
ERROR=ZS_BAD_ORIGIN
------
ERROR=ZSCANNER_EBAD_ORIGIN
ERROR=ZS_BAD_ORIGIN
------
ERROR=ZSCANNER_EBAD_REST
ERROR=ZS_BAD_REST
------
ERROR=ZSCANNER_EBAD_NUMBER
ERROR=ZS_BAD_NUMBER
------
ERROR=ZSCANNER_EBAD_NUMBER
ERROR=ZS_BAD_NUMBER
------
ERROR=ZSCANNER_EBAD_REST
ERROR=ZS_BAD_REST
------
ERROR=ZSCANNER_EBAD_REST
ERROR=ZS_BAD_REST
------
ERROR=ZSCANNER_ELABEL_OVERFLOW
ERROR=ZS_LABEL_OVERFLOW
------
ERROR=ZSCANNER_EDNAME_OVERFLOW
ERROR=ZS_DNAME_OVERFLOW
------
......@@ -88,5 +88,5 @@ RRTTL=00000079
RTYPE=0002
RDATA=00
------
ERROR=ZSCANNER_EBAD_NUMBER
ERROR=ZS_BAD_NUMBER
------
ERROR=ZSCANNER_ENUMBER32_OVERFLOW
ERROR=ZS_NUMBER32_OVERFLOW
------
ERROR=ZSCANNER_ENUMBER32_OVERFLOW
ERROR=ZS_NUMBER32_OVERFLOW
------
ERROR=ZSCANNER_ENUMBER32_OVERFLOW
ERROR=ZS_NUMBER32_OVERFLOW
------
ERROR=ZSCANNER_EBAD_TIME_UNIT
ERROR=ZS_BAD_TIME_UNIT
------
ERROR=ZSCANNER_EBAD_INCLUDE_ORIGIN
ERROR=ZS_BAD_INCLUDE_ORIGIN
------
ERROR=ZSCANNER_EBAD_INCLUDE_ORIGIN
ERROR=ZS_BAD_INCLUDE_ORIGIN
------
ERROR=ZSCANNER_EUNPROCESSED_INCLUDE
ERROR=ZS_UNPROCESSED_INCLUDE
------
ERROR=ZSCANNER_EUNOPENED_INCLUDE
ERROR=ZS_UNOPENED_INCLUDE
------
ERROR=ZSCANNER_EUNPROCESSED_INCLUDE
ERROR=ZS_UNPROCESSED_INCLUDE
------
WARNG=ZSCANNER_EBAD_RDATA
WARNG=ZS_BAD_RDATA
------
ERROR=ZSCANNER_EUNPROCESSED_INCLUDE
ERROR=ZS_UNPROCESSED_INCLUDE
------
ERROR=ZSCANNER_EBAD_NUMBER
ERROR=ZS_BAD_NUMBER
------
ERROR=ZSCANNER_EUNPROCESSED_INCLUDE
ERROR=ZS_UNPROCESSED_INCLUDE
------
......@@ -34,17 +34,17 @@ RRTTL=00000001
RTYPE=0001
RDATA=00000000
------
WARNG=ZSCANNER_EBAD_ADDRESS_CHAR
WARNG=ZS_BAD_ADDRESS_CHAR
------
WARNG=ZSCANNER_EBAD_ADDRESS_CHAR
WARNG=ZS_BAD_ADDRESS_CHAR
------
WARNG=ZSCANNER_EBAD_HEX_CHAR
WARNG=ZS_BAD_HEX_CHAR
------
WARNG=ZSCANNER_EBAD_IPV4
WARNG=ZS_BAD_IPV4
------
WARNG=ZSCANNER_EBAD_IPV4
WARNG=ZS_BAD_IPV4
------
WARNG=ZSCANNER_EBAD_ADDRESS_CHAR
WARNG=ZS_BAD_ADDRESS_CHAR
------
WARNG=ZSCANNER_EBAD_REST
WARNG=ZS_BAD_REST
------
......@@ -46,17 +46,17 @@ RRTTL=00000001
RTYPE=001C
RDATA=00000000000000000000000000000000
------
WARNG=ZSCANNER_EBAD_ADDRESS_CHAR
WARNG=ZS_BAD_ADDRESS_CHAR
------
WARNG=ZSCANNER_EBAD_ADDRESS_CHAR
WARNG=ZS_BAD_ADDRESS_CHAR
------
WARNG=ZSCANNER_EBAD_HEX_CHAR
WARNG=ZS_BAD_HEX_CHAR
------
WARNG=ZSCANNER_EBAD_IPV6
WARNG=ZS_BAD_IPV6
------
WARNG=ZSCANNER_EBAD_IPV6
WARNG=ZS_BAD_IPV6
------
WARNG=ZSCANNER_EBAD_ADDRESS_CHAR
WARNG=ZS_BAD_ADDRESS_CHAR
------
WARNG=ZSCANNER_EBAD_REST
WARNG=ZS_BAD_REST
------
......@@ -112,17 +112,17 @@ RRTTL=00000001