mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
apply the modified style
This commit is contained in:
@@ -30,8 +30,7 @@
|
||||
*/
|
||||
|
||||
static void
|
||||
notify_log(ns_client_t *client, int level, const char *fmt, ...)
|
||||
{
|
||||
notify_log(ns_client_t *client, int level, const char *fmt, ...) {
|
||||
va_list ap;
|
||||
|
||||
va_start(ap, fmt);
|
||||
@@ -41,11 +40,10 @@ notify_log(ns_client_t *client, int level, const char *fmt, ...)
|
||||
}
|
||||
|
||||
static void
|
||||
respond(ns_client_t *client, isc_result_t result)
|
||||
{
|
||||
dns_rcode_t rcode;
|
||||
respond(ns_client_t *client, isc_result_t result) {
|
||||
dns_rcode_t rcode;
|
||||
dns_message_t *message;
|
||||
isc_result_t msg_result;
|
||||
isc_result_t msg_result;
|
||||
|
||||
message = client->message;
|
||||
rcode = dns_result_torcode(result);
|
||||
@@ -71,14 +69,13 @@ respond(ns_client_t *client, isc_result_t result)
|
||||
}
|
||||
|
||||
void
|
||||
ns_notify_start(ns_client_t *client)
|
||||
{
|
||||
dns_message_t * request = client->message;
|
||||
isc_result_t result;
|
||||
dns_name_t * zonename;
|
||||
ns_notify_start(ns_client_t *client) {
|
||||
dns_message_t *request = client->message;
|
||||
isc_result_t result;
|
||||
dns_name_t *zonename;
|
||||
dns_rdataset_t *zone_rdataset;
|
||||
dns_zone_t * zone = NULL;
|
||||
char namebuf[DNS_NAME_FORMATSIZE];
|
||||
dns_zone_t *zone = NULL;
|
||||
char namebuf[DNS_NAME_FORMATSIZE];
|
||||
char tsigbuf[DNS_NAME_FORMATSIZE * 2 + sizeof(": TSIG '' ()")];
|
||||
dns_tsigkey_t *tsigkey;
|
||||
|
||||
@@ -149,14 +146,15 @@ ns_notify_start(ns_client_t *client)
|
||||
if ((zonetype == dns_zone_master) ||
|
||||
(zonetype == dns_zone_slave) ||
|
||||
(zonetype == dns_zone_mirror) ||
|
||||
(zonetype == dns_zone_stub)) {
|
||||
(zonetype == dns_zone_stub))
|
||||
{
|
||||
isc_sockaddr_t *from = ns_client_getsockaddr(client);
|
||||
isc_sockaddr_t *to = ns_client_getdestaddr(client);
|
||||
notify_log(client, ISC_LOG_INFO,
|
||||
"received notify for zone '%s'%s", namebuf,
|
||||
tsigbuf);
|
||||
result =
|
||||
dns_zone_notifyreceive(zone, from, to, request);
|
||||
result = dns_zone_notifyreceive(zone, from, to,
|
||||
request);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user