Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
9eea4c5c
Commit
9eea4c5c
authored
May 05, 2011
by
Evan Hunt
Browse files
3106. [func] When logging client requests, include the name of
the TSIG key if any. [RT #23619]
parent
e993d645
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
9eea4c5c
3106. [func] When logging client requests, include the name of
the TSIG key if any. [RT #23619]
3105. [bug] GOST support can be suppressed by "configure
--without-gost" [RT #24367]
...
...
bin/named/client.c
View file @
9eea4c5c
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: client.c,v 1.27
1
2011/0
1/11 23:47:12 tbox
Exp $ */
/* $Id: client.c,v 1.27
2
2011/0
5/05 20:04:24 each
Exp $ */
#include <config.h>
...
...
@@ -2682,19 +2682,30 @@ ns_client_logv(ns_client_t *client, isc_logcategory_t *category,
{
char
msgbuf
[
2048
];
char
peerbuf
[
ISC_SOCKADDR_FORMATSIZE
];
const
char
*
name
=
""
;
const
char
*
sep
=
""
;
char
signerbuf
[
DNS_NAME_FORMATSIZE
];
const
char
*
viewname
=
""
;
const
char
*
sep1
=
""
,
*
sep2
=
""
;
const
char
*
signer
=
""
;
vsnprintf
(
msgbuf
,
sizeof
(
msgbuf
),
fmt
,
ap
);
ns_client_name
(
client
,
peerbuf
,
sizeof
(
peerbuf
));
if
(
client
->
signer
!=
NULL
)
{
dns_name_format
(
client
->
signer
,
signerbuf
,
sizeof
(
signerbuf
));
sep1
=
"/key "
;
signer
=
signerbuf
;
}
if
(
client
->
view
!=
NULL
&&
strcmp
(
client
->
view
->
name
,
"_bind"
)
!=
0
&&
strcmp
(
client
->
view
->
name
,
"_default"
)
!=
0
)
{
name
=
client
->
view
->
name
;
sep
=
": view "
;
sep2
=
": view "
;
viewname
=
client
->
view
->
name
;
}
isc_log_write
(
ns_g_lctx
,
category
,
module
,
level
,
"client %s%s%s: %s"
,
peerbuf
,
sep
,
name
,
msgbuf
);
"client %s%s%s%s%s: %s"
,
peerbuf
,
sep1
,
signer
,
sep2
,
viewname
,
msgbuf
);
}
void
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment