mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
TCP KEEPALIVE was missing from yaml output
This commit is contained in:
parent
69322c7357
commit
8e9a58eaa7
1 changed files with 14 additions and 0 deletions
|
|
@ -3600,6 +3600,20 @@ dns_message_pseudosectiontoyaml(dns_message_t *msg,
|
|||
ADD_STRING(target, ")\n");
|
||||
continue;
|
||||
}
|
||||
} else if (optcode == DNS_OPT_TCP_KEEPALIVE) {
|
||||
if (optlen == 2) {
|
||||
unsigned int dsecs;
|
||||
dsecs = isc_buffer_getuint16(&optbuf);
|
||||
INDENT(style);
|
||||
ADD_STRING(target, "TCP-KEEPALIVE: ");
|
||||
snprintf(buf, sizeof(buf), "%u.%u",
|
||||
dsecs / 10U, dsecs % 10U);
|
||||
ADD_STRING(target, buf);
|
||||
ADD_STRING(target, " secs\n");
|
||||
continue;
|
||||
}
|
||||
INDENT(style);
|
||||
ADD_STRING(target, "TCP-KEEPALIVE:");
|
||||
} else if (optcode == DNS_OPT_PAD) {
|
||||
INDENT(style);
|
||||
ADD_STRING(target, "PAD:");
|
||||
|
|
|
|||
Loading…
Reference in a new issue