version 1.2, 2018/08/12 13:02:36 |
version 1.3, 2019/01/09 16:55:13 |
Line 38 fromtext_in_px(ARGS_FROMTEXT) { |
|
Line 38 fromtext_in_px(ARGS_FROMTEXT) { |
|
* Preference. |
* Preference. |
*/ |
*/ |
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, |
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_number, |
ISC_FALSE)); |
false)); |
if (token.value.as_ulong > 0xffffU) |
if (token.value.as_ulong > 0xffffU) |
RETTOK(ISC_R_RANGE); |
RETTOK(ISC_R_RANGE); |
RETERR(uint16_tobuffer(token.value.as_ulong, target)); |
RETERR(uint16_tobuffer(token.value.as_ulong, target)); |
Line 47 fromtext_in_px(ARGS_FROMTEXT) { |
|
Line 47 fromtext_in_px(ARGS_FROMTEXT) { |
|
* MAP822. |
* MAP822. |
*/ |
*/ |
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string, |
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string, |
ISC_FALSE)); |
false)); |
dns_name_init(&name, NULL); |
dns_name_init(&name, NULL); |
buffer_fromregion(&buffer, &token.value.as_region); |
buffer_fromregion(&buffer, &token.value.as_region); |
RETTOK(dns_name_fromtext(&name, &buffer, origin, options, target)); |
RETTOK(dns_name_fromtext(&name, &buffer, origin, options, target)); |
Line 56 fromtext_in_px(ARGS_FROMTEXT) { |
|
Line 56 fromtext_in_px(ARGS_FROMTEXT) { |
|
* MAPX400. |
* MAPX400. |
*/ |
*/ |
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string, |
RETERR(isc_lex_getmastertoken(lexer, &token, isc_tokentype_string, |
ISC_FALSE)); |
false)); |
dns_name_init(&name, NULL); |
dns_name_init(&name, NULL); |
buffer_fromregion(&buffer, &token.value.as_region); |
buffer_fromregion(&buffer, &token.value.as_region); |
RETTOK(dns_name_fromtext(&name, &buffer, origin, options, target)); |
RETTOK(dns_name_fromtext(&name, &buffer, origin, options, target)); |
Line 68 totext_in_px(ARGS_TOTEXT) { |
|
Line 68 totext_in_px(ARGS_TOTEXT) { |
|
isc_region_t region; |
isc_region_t region; |
dns_name_t name; |
dns_name_t name; |
dns_name_t prefix; |
dns_name_t prefix; |
isc_boolean_t sub; |
bool sub; |
char buf[sizeof("64000")]; |
char buf[sizeof("64000")]; |
unsigned short num; |
unsigned short num; |
|
|
Line 337 digest_in_px(ARGS_DIGEST) { |
|
Line 337 digest_in_px(ARGS_DIGEST) { |
|
return (dns_name_digest(&name, digest, arg)); |
return (dns_name_digest(&name, digest, arg)); |
} |
} |
|
|
static inline isc_boolean_t |
static inline bool |
checkowner_in_px(ARGS_CHECKOWNER) { |
checkowner_in_px(ARGS_CHECKOWNER) { |
|
|
REQUIRE(type == dns_rdatatype_px); |
REQUIRE(type == dns_rdatatype_px); |
Line 348 checkowner_in_px(ARGS_CHECKOWNER) { |
|
Line 348 checkowner_in_px(ARGS_CHECKOWNER) { |
|
UNUSED(rdclass); |
UNUSED(rdclass); |
UNUSED(wildcard); |
UNUSED(wildcard); |
|
|
return (ISC_TRUE); |
return (true); |
} |
} |
|
|
static inline isc_boolean_t |
static inline bool |
checknames_in_px(ARGS_CHECKNAMES) { |
checknames_in_px(ARGS_CHECKNAMES) { |
|
|
REQUIRE(rdata->type == dns_rdatatype_px); |
REQUIRE(rdata->type == dns_rdatatype_px); |
Line 361 checknames_in_px(ARGS_CHECKNAMES) { |
|
Line 361 checknames_in_px(ARGS_CHECKNAMES) { |
|
UNUSED(owner); |
UNUSED(owner); |
UNUSED(bad); |
UNUSED(bad); |
|
|
return (ISC_TRUE); |
return (true); |
} |
} |
|
|
static inline int |
static inline int |