2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

[master] easier to read NSID output

3626.	[func]		dig: NSID output now easier to read. [RT #21160]
This commit is contained in:
Evan Hunt 2013-08-08 16:50:34 -07:00
parent f378953f3b
commit a499dddb4b
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,5 @@
3626. [func] dig: NSID output now easier to read. [RT #21160]
3625. [bug] Don't send notify messages to machines outside of the 3625. [bug] Don't send notify messages to machines outside of the
test setup. test setup.

View File

@ -3270,16 +3270,17 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
sprintf(buf, "%02x ", optdata[i]); sprintf(buf, "%02x ", optdata[i]);
ADD_STRING(target, buf); ADD_STRING(target, buf);
} }
ADD_STRING(target, "(\"");
for (i = 0; i < optlen; i++) { for (i = 0; i < optlen; i++) {
ADD_STRING(target, " (");
if (isprint(optdata[i])) if (isprint(optdata[i]))
isc_buffer_putmem(target, isc_buffer_putmem(target,
&optdata[i], &optdata[i],
1); 1);
else else
isc_buffer_putstr(target, "."); isc_buffer_putstr(target, ".");
ADD_STRING(target, ")");
} }
ADD_STRING(target, "\")");
isc_buffer_forward(&optbuf, optlen); isc_buffer_forward(&optbuf, optlen);
} }
ADD_STRING(target, "\n"); ADD_STRING(target, "\n");