mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
libdns refactoring: get rid of multiple versions of dns_dt_create, dns_view_setcache, dns_zt_apply, dns_message_logfmtpacket, dns_message_logpacket, dns_ssutable_checkrules and dns_ttl_totext
This commit is contained in:
@@ -3604,6 +3604,7 @@ dns_message_pseudosectiontoyaml(dns_message_t *msg,
|
||||
ADD_STRING(target, buf);
|
||||
ADD_STRING(target, " (");
|
||||
result = dns_ttl_totext(secs,
|
||||
ISC_TRUE,
|
||||
ISC_TRUE,
|
||||
target);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
@@ -3855,6 +3856,7 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
|
||||
ADD_STRING(target, buf);
|
||||
ADD_STRING(target, " (");
|
||||
result = dns_ttl_totext(secs,
|
||||
ISC_TRUE,
|
||||
ISC_TRUE,
|
||||
target);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
@@ -4248,19 +4250,10 @@ dns_opcode_totext(dns_opcode_t opcode, isc_buffer_t *target) {
|
||||
}
|
||||
|
||||
void
|
||||
dns_message_logpacket(dns_message_t *message, const char *description,
|
||||
dns_message_logpacket(dns_message_t *message,
|
||||
const char *description, const isc_sockaddr_t *address,
|
||||
isc_logcategory_t *category, isc_logmodule_t *module,
|
||||
int level, isc_mem_t *mctx)
|
||||
{
|
||||
logfmtpacket(message, description, NULL, category, module,
|
||||
&dns_master_style_debug, level, mctx);
|
||||
}
|
||||
|
||||
void
|
||||
dns_message_logpacket2(dns_message_t *message,
|
||||
const char *description, const isc_sockaddr_t *address,
|
||||
isc_logcategory_t *category, isc_logmodule_t *module,
|
||||
int level, isc_mem_t *mctx)
|
||||
{
|
||||
REQUIRE(address != NULL);
|
||||
|
||||
@@ -4269,22 +4262,12 @@ dns_message_logpacket2(dns_message_t *message,
|
||||
}
|
||||
|
||||
void
|
||||
dns_message_logfmtpacket(dns_message_t *message, const char *description,
|
||||
dns_message_logfmtpacket(dns_message_t *message,
|
||||
const char *description,
|
||||
const isc_sockaddr_t *address,
|
||||
isc_logcategory_t *category, isc_logmodule_t *module,
|
||||
const dns_master_style_t *style, int level,
|
||||
isc_mem_t *mctx)
|
||||
{
|
||||
logfmtpacket(message, description, NULL, category, module, style,
|
||||
level, mctx);
|
||||
}
|
||||
|
||||
void
|
||||
dns_message_logfmtpacket2(dns_message_t *message,
|
||||
const char *description,
|
||||
const isc_sockaddr_t *address,
|
||||
isc_logcategory_t *category, isc_logmodule_t *module,
|
||||
const dns_master_style_t *style, int level,
|
||||
isc_mem_t *mctx)
|
||||
{
|
||||
REQUIRE(address != NULL);
|
||||
|
||||
|
Reference in New Issue
Block a user