2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

the client control event should be a server event,

not a DNS library event
This commit is contained in:
Andreas Gustafsson
2000-07-26 23:45:55 +00:00
parent a53151d995
commit 4d9b99ccb2
3 changed files with 5 additions and 5 deletions

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: client.c,v 1.103 2000/07/26 17:39:09 gson Exp $ */
/* $Id: client.c,v 1.104 2000/07/26 23:45:52 gson Exp $ */
#include <config.h>
@@ -1237,7 +1237,7 @@ client_create(ns_clientmgr_t *manager, ns_client_t **clientp)
client->interface = NULL;
client->peeraddr_valid = ISC_FALSE;
ISC_EVENT_INIT(&client->ctlevent, sizeof(client->ctlevent), 0, NULL,
DNS_EVENT_CLIENTCONTROL, client_start, client, client,
NS_EVENT_CLIENTCONTROL, client_start, client, client,
NULL, NULL);
ISC_LINK_INIT(client, link);
client->list = NULL;

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: server.h,v 1.32 2000/06/22 21:49:51 tale Exp $ */
/* $Id: server.h,v 1.33 2000/07/26 23:45:55 gson Exp $ */
#ifndef NAMED_SERVER_H
#define NAMED_SERVER_H 1
@@ -30,6 +30,7 @@
#define NS_EVENTCLASS ISC_EVENTCLASS(0x4E43)
#define NS_EVENT_RELOAD (NS_EVENTCLASS + 0)
#define NS_EVENT_CLIENTCONTROL (NS_EVENTCLASS + 1)
/*
* Name server state. Better here than in lots of separate global variables.

View File

@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: events.h,v 1.25 2000/07/26 17:39:12 gson Exp $ */
/* $Id: events.h,v 1.26 2000/07/26 23:45:51 gson Exp $ */
#ifndef DNS_EVENTS_H
#define DNS_EVENTS_H 1
@@ -52,7 +52,6 @@
#define DNS_EVENT_NOTIFYSENDTOADDR (ISC_EVENTCLASS_DNS + 23)
#define DNS_EVENT_ZONE (ISC_EVENTCLASS_DNS + 24)
#define DNS_EVENT_ZONESTARTXFRIN (ISC_EVENTCLASS_DNS + 25)
#define DNS_EVENT_CLIENTCONTROL (ISC_EVENTCLASS_DNS + 26)
#define DNS_EVENT_FIRSTEVENT (ISC_EVENTCLASS_DNS + 0)
#define DNS_EVENT_LASTEVENT (ISC_EVENTCLASS_DNS + 65535)