diff options
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/doa_259.c')
-rw-r--r-- | usr.bin/dig/lib/dns/rdata/generic/doa_259.c | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/doa_259.c b/usr.bin/dig/lib/dns/rdata/generic/doa_259.c index 39a5a1a754b..8cdaed46384 100644 --- a/usr.bin/dig/lib/dns/rdata/generic/doa_259.c +++ b/usr.bin/dig/lib/dns/rdata/generic/doa_259.c @@ -20,61 +20,6 @@ #define RRTYPE_DOA_ATTRIBUTES (0) static inline isc_result_t -fromtext_doa(ARGS_FROMTEXT) { - isc_token_t token; - - REQUIRE(type == dns_rdatatype_doa); - - UNUSED(rdclass); - UNUSED(origin); - UNUSED(options); - UNUSED(callbacks); - - /* - * DOA-ENTERPRISE - */ - RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, - ISC_FALSE)); - RETERR(uint32_tobuffer(token.value.as_ulong, target)); - - /* - * DOA-TYPE - */ - RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, - ISC_FALSE)); - RETERR(uint32_tobuffer(token.value.as_ulong, target)); - - /* - * DOA-LOCATION - */ - RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, - ISC_FALSE)); - if (token.value.as_ulong > 0xffU) { - RETTOK(ISC_R_RANGE); - } - RETERR(uint8_tobuffer(token.value.as_ulong, target)); - - /* - * DOA-MEDIA-TYPE - */ - RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_qstring, - ISC_FALSE)); - RETTOK(txt_fromtext(&token.value.as_textregion, target)); - - /* - * DOA-DATA - */ - RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string, - ISC_FALSE)); - if (strcmp(DNS_AS_STR(token), "-") == 0) { - return (ISC_R_SUCCESS); - } else { - isc_lex_ungettoken(lexer, &token); - return (isc_base64_tobuffer(lexer, target, -1)); - } -} - -static inline isc_result_t totext_doa(ARGS_TOTEXT) { char buf[sizeof("4294967295 ")]; isc_region_t region; |