diff options
Diffstat (limited to 'usr.sbin/named/ns_glob.h')
-rw-r--r-- | usr.sbin/named/ns_glob.h | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/usr.sbin/named/ns_glob.h b/usr.sbin/named/ns_glob.h index 993d14d..b404e7e 100644 --- a/usr.sbin/named/ns_glob.h +++ b/usr.sbin/named/ns_glob.h @@ -1,6 +1,6 @@ /* * from ns.h 4.33 (Berkeley) 8/23/90 - * $Id: ns_glob.h,v 1.7 1994/06/11 22:04:46 vixie Exp $ + * $Id: ns_glob.h,v 8.3 1995/06/19 20:55:40 vixie Exp $ */ /* @@ -77,14 +77,11 @@ DECL struct qdatagram *datagramq INIT(QDATAGRAM_NULL); DECL struct timeval tt; /* head of allocated queries */ -DECL struct qinfo *qhead INIT(QINFO_NULL); +DECL struct qinfo *nsqhead INIT(QINFO_NULL); /* list of forwarding hosts */ DECL struct fwdinfo *fwdtab INIT(NULL); - /* next forwarded query id */ -DECL int nsid INIT(0); - /* datagram socket */ DECL int ds INIT(-1); @@ -101,6 +98,16 @@ DECL int needmaint INIT(0); /* (beware: this is also the upper bound on named_xfer real time) */ DECL int maint_interval INIT(15*60); +#ifdef CLEANCACHE + /* What's the minimum interval between cache cleanings? */ +DECL int cache_interval INIT(60*60); +#endif + +#ifdef XSTATS + /* What's the minimum interval between stats output? */ +DECL int stats_interval INIT(60*60); +#endif + /* need to reload secondary zone(s) */ DECL int needzoneload INIT(0); @@ -122,6 +129,13 @@ DECL int needStatsDump INIT(0); */ DECL int needToExit INIT(0); #endif /* ALLOW_UPDATES */ +#ifdef XSTATS + /* need to exit + * set by shutdown signal handler + * (onintr) + */ +DECL int needToExit INIT(0); +#endif /* XSTATS */ #ifdef QRYLOG /* is query logging turned on? */ @@ -231,15 +245,23 @@ DECL int slave_retry INIT(4); #endif #ifdef STATSFILE -DECL char *statsfile INIT(STATSFILE); +DECL const char *statsfile INIT(STATSFILE); #else -DECL char *statsfile INIT(_PATH_STATS); +DECL const char *statsfile INIT(_PATH_STATS); #endif -DECL char sendtoStr[] INIT("sendto"); +DECL const char sendtoStr[] INIT("sendto"); /* defined in version.c, can't use DECL/INIT */ extern char Version[]; /* max value of xfers_running */ -DECL int max_xfers_running INIT(MAX_XFERS_RUNNING); +DECL int max_xfers_running INIT(MAX_XFERS_RUNNING); + + /* max number of transfers to any given name server */ +DECL int max_xfers_per_ns INIT(MAX_XFERS_PER_NS); + +#ifndef INVQ + /* should IQUERY be answered bogusly rather than with NOTIMPL? */ +DECL int fake_iquery INIT(0); +#endif |