update copyright notice
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: client.c,v 1.250.16.4 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: client.c,v 1.250.16.5 2008/04/03 06:20:33 tbox Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -1765,7 +1765,7 @@ client_request(isc_task_t *task, isc_event_t *event) {
|
||||
dns_generalstats_increment(ns_g_server->nsstats,
|
||||
dns_nsstatscounter_sig0in);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
ns_client_log(client, DNS_LOGCATEGORY_SECURITY,
|
||||
|
||||
+3
-3
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.495.10.9 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: server.c,v 1.495.10.10 2008/04/03 06:20:33 tbox Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1376,7 +1376,7 @@ configure_view(dns_view_t *view, const cfg_obj_t *config,
|
||||
if (resquerystats == NULL)
|
||||
CHECK(dns_rdatatypestats_create(mctx, &resquerystats));
|
||||
dns_view_setresquerystats(view, resquerystats);
|
||||
|
||||
|
||||
/*
|
||||
* Set the ADB cache size to 1/8th of the max-cache-size.
|
||||
*/
|
||||
@@ -3875,7 +3875,7 @@ ns_server_create(isc_mem_t *mctx, ns_server_t **serverp) {
|
||||
dns_nsstatscounter_max),
|
||||
"dns_stats_create (server)");
|
||||
|
||||
CHECKFATAL(dns_rdatatypestats_create(ns_g_mctx,
|
||||
CHECKFATAL(dns_rdatatypestats_create(ns_g_mctx,
|
||||
&server->rcvquerystats),
|
||||
"dns_stats_create (rcvquery)");
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: statschannel.c,v 1.2.2.6 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: statschannel.c,v 1.2.2.7 2008/04/03 06:20:33 tbox Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -80,7 +80,7 @@ generalstat_dump(dns_statscounter_t counter, isc_uint64_t val, void *arg) {
|
||||
|
||||
switch (dumparg->type) {
|
||||
case statsformat_file:
|
||||
fp = dumparg->arg;
|
||||
fp = dumparg->arg;
|
||||
fprintf(fp, "%20" ISC_PRINT_QUADFORMAT "u %s\n", val,
|
||||
dumparg->desc[counter]);
|
||||
break;
|
||||
@@ -888,9 +888,9 @@ static const char *resstats_desc[] = {
|
||||
"truncated responses received", /* dns_resstatscounter_truncated */
|
||||
"lame delegations received", /* dns_resstatscounter_lame */
|
||||
"query retries", /* dns_resstatscounter_retry */
|
||||
"IPv4 NS address fetches", /* dns_resstatscounter_gluefetchv4 */
|
||||
"IPv6 NS address fetches", /* dns_resstatscounter_gluefetchv6 */
|
||||
"IPv4 NS address fetch failed", /* dns_resstatscounter_gluefetchv4fail */
|
||||
"IPv4 NS address fetches", /* dns_resstatscounter_gluefetchv4 */
|
||||
"IPv6 NS address fetches", /* dns_resstatscounter_gluefetchv6 */
|
||||
"IPv4 NS address fetch failed", /* dns_resstatscounter_gluefetchv4fail */
|
||||
"IPv6 NS address fetch failed", /* dns_resstatscounter_gluefetchv6fail */
|
||||
"DNSSEC validation attempted", /* dns_resstatscounter_val */
|
||||
"DNSSEC validation failed", /* dns_resstatscounter_valfail */
|
||||
|
||||
+29
-29
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: xfrout.c,v 1.126.128.1 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: xfrout.c,v 1.126.128.2 2008/04/03 06:20:33 tbox Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
#include <named/server.h>
|
||||
#include <named/xfrout.h>
|
||||
|
||||
/*! \file
|
||||
/*! \file
|
||||
* \brief
|
||||
* Outgoing AXFR and IXFR.
|
||||
*/
|
||||
@@ -87,7 +87,7 @@
|
||||
ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, \
|
||||
NS_LOGMODULE_XFER_OUT, ISC_LOG_INFO, \
|
||||
"bad zone transfer request: %s (%s)", \
|
||||
msg, isc_result_totext(code)); \
|
||||
msg, isc_result_totext(code)); \
|
||||
if (result != ISC_R_SUCCESS) goto failure; \
|
||||
} while (0)
|
||||
|
||||
@@ -101,12 +101,12 @@
|
||||
ns_client_log(client, DNS_LOGCATEGORY_XFER_OUT, \
|
||||
NS_LOGMODULE_XFER_OUT, ISC_LOG_INFO, \
|
||||
"bad zone transfer request: '%s/%s': %s (%s)", \
|
||||
_buf1, _buf2, msg, isc_result_totext(code)); \
|
||||
_buf1, _buf2, msg, isc_result_totext(code)); \
|
||||
if (result != ISC_R_SUCCESS) goto failure; \
|
||||
} while (0)
|
||||
|
||||
#define CHECK(op) \
|
||||
do { result = (op); \
|
||||
do { result = (op); \
|
||||
if (result != ISC_R_SUCCESS) goto failure; \
|
||||
} while (0)
|
||||
|
||||
@@ -122,12 +122,12 @@ typedef struct db_rr_iterator db_rr_iterator_t;
|
||||
struct db_rr_iterator {
|
||||
isc_result_t result;
|
||||
dns_db_t *db;
|
||||
dns_dbiterator_t *dbit;
|
||||
dns_dbiterator_t *dbit;
|
||||
dns_dbversion_t *ver;
|
||||
isc_stdtime_t now;
|
||||
dns_dbnode_t *node;
|
||||
dns_fixedname_t fixedname;
|
||||
dns_rdatasetiter_t *rdatasetit;
|
||||
dns_rdatasetiter_t *rdatasetit;
|
||||
dns_rdataset_t rdataset;
|
||||
dns_rdata_t rdata;
|
||||
};
|
||||
@@ -337,7 +337,7 @@ log_rr(dns_name_t *name, dns_rdata_t *rdata, isc_uint32_t ttl) {
|
||||
INSIST(buf.used >= 1 &&
|
||||
((char *) buf.base)[buf.used - 1] == '\n');
|
||||
buf.used--;
|
||||
|
||||
|
||||
isc_log_write(XFROUT_RR_LOGARGS, "%.*s",
|
||||
(int)isc_buffer_usedlength(&buf),
|
||||
(char *)isc_buffer_base(&buf));
|
||||
@@ -981,7 +981,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
|
||||
/*
|
||||
* Normal zone table does not have a match. Try the DLZ database
|
||||
*/
|
||||
if (client->view->dlzdatabase != NULL) {
|
||||
if (client->view->dlzdatabase != NULL) {
|
||||
result = dns_dlzallowzonexfr(client->view,
|
||||
question_name, &client->peeraddr,
|
||||
&db);
|
||||
@@ -1018,7 +1018,7 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
|
||||
|
||||
} else {
|
||||
/*
|
||||
* not DLZ and not in normal zone table, we are
|
||||
* not DLZ and not in normal zone table, we are
|
||||
* not authoritative
|
||||
*/
|
||||
FAILQ(DNS_R_NOTAUTH, "non-authoritative zone",
|
||||
@@ -1222,28 +1222,28 @@ ns_xfr_start(ns_client_t *client, dns_rdatatype_t reqtype) {
|
||||
|
||||
#ifdef DLZ
|
||||
if (is_dlz)
|
||||
CHECK(xfrout_ctx_create(mctx, client, request->id, question_name,
|
||||
reqtype, question_class, zone, db, ver,
|
||||
CHECK(xfrout_ctx_create(mctx, client, request->id, question_name,
|
||||
reqtype, question_class, zone, db, ver,
|
||||
quota, stream,
|
||||
dns_message_gettsigkey(request),
|
||||
tsigbuf,
|
||||
3600,
|
||||
3600,
|
||||
(format == dns_many_answers) ?
|
||||
ISC_TRUE : ISC_FALSE,
|
||||
&xfr));
|
||||
else
|
||||
tsigbuf,
|
||||
3600,
|
||||
3600,
|
||||
(format == dns_many_answers) ?
|
||||
ISC_TRUE : ISC_FALSE,
|
||||
&xfr));
|
||||
else
|
||||
#endif
|
||||
CHECK(xfrout_ctx_create(mctx, client, request->id, question_name,
|
||||
reqtype, question_class, zone, db, ver,
|
||||
CHECK(xfrout_ctx_create(mctx, client, request->id, question_name,
|
||||
reqtype, question_class, zone, db, ver,
|
||||
quota, stream,
|
||||
dns_message_gettsigkey(request),
|
||||
tsigbuf,
|
||||
dns_zone_getmaxxfrout(zone),
|
||||
dns_zone_getidleout(zone),
|
||||
(format == dns_many_answers) ?
|
||||
ISC_TRUE : ISC_FALSE,
|
||||
&xfr));
|
||||
tsigbuf,
|
||||
dns_zone_getmaxxfrout(zone),
|
||||
dns_zone_getidleout(zone),
|
||||
(format == dns_many_answers) ?
|
||||
ISC_TRUE : ISC_FALSE,
|
||||
&xfr));
|
||||
|
||||
xfr->mnemonic = mnemonic;
|
||||
stream = NULL;
|
||||
@@ -1681,7 +1681,7 @@ sendstream(xfrout_ctx_t *xfr) {
|
||||
* iterators before returning from the event handler.
|
||||
*/
|
||||
xfr->stream->methods->pause(xfr->stream);
|
||||
|
||||
|
||||
if (result == ISC_R_SUCCESS)
|
||||
return;
|
||||
|
||||
|
||||
+12
-12
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: zoneconf.c,v 1.139.56.1 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: zoneconf.c,v 1.139.56.2 2008/04/03 06:20:33 tbox Exp $ */
|
||||
|
||||
/*% */
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
static isc_result_t
|
||||
configure_zone_acl(const cfg_obj_t *zconfig, const cfg_obj_t *vconfig,
|
||||
const cfg_obj_t *config, const char *aclname,
|
||||
cfg_aclconfctx_t *actx, dns_zone_t *zone,
|
||||
cfg_aclconfctx_t *actx, dns_zone_t *zone,
|
||||
void (*setzacl)(dns_zone_t *, dns_acl_t *),
|
||||
void (*clearzacl)(dns_zone_t *))
|
||||
{
|
||||
@@ -273,11 +273,11 @@ strtoargvsub(isc_mem_t *mctx, char *s, unsigned int *argcp,
|
||||
char ***argvp, unsigned int n)
|
||||
{
|
||||
isc_result_t result;
|
||||
|
||||
|
||||
/* Discard leading whitespace. */
|
||||
while (*s == ' ' || *s == '\t')
|
||||
s++;
|
||||
|
||||
|
||||
if (*s == '\0') {
|
||||
/* We have reached the end of the string. */
|
||||
*argcp = n;
|
||||
@@ -639,7 +639,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "check-sibling", &obj);
|
||||
INSIST(result == ISC_R_SUCCESS);
|
||||
dns_zone_setoption(zone, DNS_ZONEOPT_CHECKSIBLING,
|
||||
dns_zone_setoption(zone, DNS_ZONEOPT_CHECKSIBLING,
|
||||
cfg_obj_asboolean(obj));
|
||||
|
||||
obj = NULL;
|
||||
@@ -658,7 +658,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
"allow-update", ac, zone,
|
||||
dns_zone_setupdateacl,
|
||||
dns_zone_clearupdateacl));
|
||||
|
||||
|
||||
updateacl = dns_zone_getupdateacl(zone);
|
||||
if (updateacl != NULL && dns_acl_isinsecure(updateacl))
|
||||
isc_log_write(ns_g_lctx, DNS_LOGCATEGORY_SECURITY,
|
||||
@@ -666,7 +666,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
"zone '%s' allows updates by IP "
|
||||
"address, which is insecure",
|
||||
zname);
|
||||
|
||||
|
||||
RETERR(configure_zone_ssutable(zoptions, zone));
|
||||
|
||||
obj = NULL;
|
||||
@@ -714,7 +714,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "check-integrity", &obj);
|
||||
INSIST(obj != NULL);
|
||||
dns_zone_setoption(zone, DNS_ZONEOPT_CHECKINTEGRITY,
|
||||
dns_zone_setoption(zone, DNS_ZONEOPT_CHECKINTEGRITY,
|
||||
cfg_obj_asboolean(obj));
|
||||
|
||||
obj = NULL;
|
||||
@@ -750,7 +750,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
obj = NULL;
|
||||
result = ns_config_get(maps, "update-check-ksk", &obj);
|
||||
INSIST(result == ISC_R_SUCCESS);
|
||||
dns_zone_setoption(zone, DNS_ZONEOPT_UPDATECHECKKSK,
|
||||
dns_zone_setoption(zone, DNS_ZONEOPT_UPDATECHECKKSK,
|
||||
cfg_obj_asboolean(obj));
|
||||
}
|
||||
|
||||
@@ -764,7 +764,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
"allow-update", ac, zone,
|
||||
dns_zone_setupdateacl,
|
||||
dns_zone_clearupdateacl));
|
||||
|
||||
|
||||
updateacl = dns_zone_getupdateacl(zone);
|
||||
if (updateacl != NULL && dns_acl_isinsecure(updateacl))
|
||||
isc_log_write(ns_g_lctx, DNS_LOGCATEGORY_SECURITY,
|
||||
@@ -772,7 +772,7 @@ ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
|
||||
"zone '%s' allows updates by IP "
|
||||
"address, which is insecure",
|
||||
zname);
|
||||
|
||||
|
||||
RETERR(configure_zone_ssutable(zoptions, zone));
|
||||
|
||||
obj = NULL;
|
||||
|
||||
+3
-3
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: adb.c,v 1.233.36.4 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: adb.c,v 1.233.36.5 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
/*! \file
|
||||
*
|
||||
@@ -3544,10 +3544,10 @@ fetch_name(dns_adbname_t *adbname,
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto cleanup;
|
||||
|
||||
if (type == dns_rdatatype_a) {
|
||||
if (type == dns_rdatatype_a) {
|
||||
adbname->fetch_a = fetch;
|
||||
inc_stats(adb, dns_resstatscounter_gluefetchv4);
|
||||
} else {
|
||||
} else {
|
||||
adbname->fetch_aaaa = fetch;
|
||||
inc_stats(adb, dns_resstatscounter_gluefetchv6);
|
||||
}
|
||||
|
||||
+10
-10
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 1999-2001, 2003 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: db.c,v 1.83.128.1 2008/04/03 06:10:19 marka Exp $ */
|
||||
/* $Id: db.c,v 1.83.128.2 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -95,7 +95,7 @@ static inline dns_dbimplementation_t *
|
||||
impfind(const char *name) {
|
||||
dns_dbimplementation_t *imp;
|
||||
|
||||
for (imp = ISC_LIST_HEAD(implementations);
|
||||
for (imp = ISC_LIST_HEAD(implementations);
|
||||
imp != NULL;
|
||||
imp = ISC_LIST_NEXT(imp, link))
|
||||
if (strcasecmp(name, imp->name) == 0)
|
||||
@@ -543,10 +543,10 @@ dns_db_transfernode(dns_db_t *db, dns_dbnode_t **sourcep,
|
||||
UNUSED(db);
|
||||
|
||||
if (db->methods->transfernode == NULL) {
|
||||
*targetp = *sourcep;
|
||||
*sourcep = NULL;
|
||||
*targetp = *sourcep;
|
||||
*sourcep = NULL;
|
||||
} else
|
||||
(db->methods->transfernode)(db, sourcep, targetp);
|
||||
(db->methods->transfernode)(db, sourcep, targetp);
|
||||
|
||||
ENSURE(*sourcep == NULL);
|
||||
}
|
||||
@@ -711,7 +711,7 @@ dns_db_deleterdataset(dns_db_t *db, dns_dbnode_t *node,
|
||||
type, covers));
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
dns_db_overmem(dns_db_t *db, isc_boolean_t overmem) {
|
||||
|
||||
REQUIRE(DNS_DB_VALID(db));
|
||||
@@ -737,11 +737,11 @@ dns_db_getsoaserial(dns_db_t *db, dns_dbversion_t *ver, isc_uint32_t *serialp)
|
||||
dns_rdataset_init(&rdataset);
|
||||
result = dns_db_findrdataset(db, node, ver, dns_rdatatype_soa, 0,
|
||||
(isc_stdtime_t)0, &rdataset, NULL);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto freenode;
|
||||
|
||||
result = dns_rdataset_first(&rdataset);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto freerdataset;
|
||||
dns_rdataset_current(&rdataset, &rdata);
|
||||
result = dns_rdataset_next(&rdataset);
|
||||
@@ -794,7 +794,7 @@ dns_db_register(const char *name, dns_dbcreatefunc_t create, void *driverarg,
|
||||
RWUNLOCK(&implock, isc_rwlocktype_write);
|
||||
return (ISC_R_EXISTS);
|
||||
}
|
||||
|
||||
|
||||
imp = isc_mem_get(mctx, sizeof(dns_dbimplementation_t));
|
||||
if (imp == NULL) {
|
||||
RWUNLOCK(&implock, isc_rwlocktype_write);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: adb.h,v 1.83.128.1 2008/04/03 06:10:21 marka Exp $ */
|
||||
/* $Id: adb.h,v 1.83.128.2 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
#ifndef DNS_ADB_H
|
||||
#define DNS_ADB_H 1
|
||||
@@ -99,7 +99,7 @@ ISC_LANG_BEGINDECLS
|
||||
|
||||
typedef struct dns_adbname dns_adbname_t;
|
||||
|
||||
/*!
|
||||
/*!
|
||||
*\brief
|
||||
* Represents a lookup for a single name.
|
||||
*
|
||||
@@ -220,7 +220,7 @@ struct dns_adbaddrinfo {
|
||||
ISC_LINK(dns_adbaddrinfo_t) publink;
|
||||
};
|
||||
|
||||
/*!<
|
||||
/*!<
|
||||
* The event sent to the caller task is just a plain old isc_event_t. It
|
||||
* contains no data other than a simple status, passed in the "type" field
|
||||
* to indicate that another address resolved, or all partially resolved
|
||||
@@ -520,7 +520,7 @@ void
|
||||
dns_adb_adjustsrtt(dns_adb_t *adb, dns_adbaddrinfo_t *addr,
|
||||
unsigned int rtt, unsigned int factor);
|
||||
/*%<
|
||||
* Mix the round trip time into the existing smoothed rtt.
|
||||
* Mix the round trip time into the existing smoothed rtt.
|
||||
|
||||
* The formula used
|
||||
* (where srtt is the existing rtt value, and rtt and factor are arguments to
|
||||
@@ -623,7 +623,7 @@ void
|
||||
dns_adb_flushname(dns_adb_t *adb, dns_name_t *name);
|
||||
/*%<
|
||||
* Flush 'name' from the adb cache.
|
||||
*
|
||||
*
|
||||
* Requires:
|
||||
*\li 'adb' is valid.
|
||||
*\li 'name' is valid.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: db.h,v 1.89.128.1 2008/04/03 06:10:21 marka Exp $ */
|
||||
/* $Id: db.h,v 1.89.128.2 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
#ifndef DNS_DB_H
|
||||
#define DNS_DB_H 1
|
||||
@@ -147,7 +147,7 @@ typedef struct dns_dbmethods {
|
||||
void (*settask)(dns_db_t *db, isc_task_t *);
|
||||
isc_result_t (*getoriginnode)(dns_db_t *db, dns_dbnode_t **nodep);
|
||||
void (*transfernode)(dns_db_t *db, dns_dbnode_t **sourcep,
|
||||
dns_dbnode_t **targetp);
|
||||
dns_dbnode_t **targetp);
|
||||
dns_stats_t *(*getrrsetstats)(dns_db_t *db);
|
||||
} dns_dbmethods_t;
|
||||
|
||||
@@ -156,7 +156,7 @@ typedef isc_result_t
|
||||
dns_dbtype_t type, dns_rdataclass_t rdclass,
|
||||
unsigned int argc, char *argv[], void *driverarg,
|
||||
dns_db_t **dbp);
|
||||
|
||||
|
||||
#define DNS_DB_MAGIC ISC_MAGIC('D','N','S','D')
|
||||
#define DNS_DB_VALID(db) ISC_MAGIC_VALID(db, DNS_DB_MAGIC)
|
||||
|
||||
@@ -789,7 +789,7 @@ dns_db_find(dns_db_t *db, dns_name_t *name, dns_dbversion_t *version,
|
||||
* the negative caching proof.
|
||||
*
|
||||
* \li #DNS_R_EMPTYNAME The name exists but there is
|
||||
* no data at the name.
|
||||
* no data at the name.
|
||||
*
|
||||
* \li #DNS_R_COVERINGNSEC The returned data is a NSEC
|
||||
* that potentially covers 'name'.
|
||||
@@ -887,8 +887,8 @@ dns_db_detachnode(dns_db_t *db, dns_dbnode_t **nodep);
|
||||
*/
|
||||
|
||||
void
|
||||
dns_db_transfernode(dns_db_t *db, dns_dbnode_t **sourcep,
|
||||
dns_dbnode_t **targetp);
|
||||
dns_db_transfernode(dns_db_t *db, dns_dbnode_t **sourcep,
|
||||
dns_dbnode_t **targetp);
|
||||
/*%<
|
||||
* Transfer a node between pointer.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 2004-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Copyright (C) 1999-2003 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: dispatch.h,v 1.56.128.1 2008/04/03 06:10:21 marka Exp $ */
|
||||
/* $Id: dispatch.h,v 1.56.128.2 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
#ifndef DNS_DISPATCH_H
|
||||
#define DNS_DISPATCH_H 1
|
||||
@@ -187,7 +187,7 @@ dns_dispatchmgr_getblackhole(dns_dispatchmgr_t *mgr);
|
||||
|
||||
void
|
||||
dns_dispatchmgr_setblackportlist(dns_dispatchmgr_t *mgr,
|
||||
dns_portlist_t *portlist);
|
||||
dns_portlist_t *portlist);
|
||||
/*%<
|
||||
* Sets a list of UDP ports that won't be used when creating a udp
|
||||
* dispatch with a wildcard port.
|
||||
@@ -380,7 +380,7 @@ dns_dispatch_removeresponse(dns_dispentry_t **resp,
|
||||
*\li "resp" != NULL and "*resp" contain a value previously allocated
|
||||
* by dns_dispatch_addresponse();
|
||||
*
|
||||
*\li May only be called from within the task given as the 'task'
|
||||
*\li May only be called from within the task given as the 'task'
|
||||
* argument to dns_dispatch_addresponse() when allocating '*resp'.
|
||||
*/
|
||||
|
||||
@@ -397,7 +397,7 @@ dns_dispatch_getsocket(dns_dispatch_t *disp);
|
||||
*\li The socket the dispatcher is using.
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
isc_result_t
|
||||
dns_dispatch_getlocaladdress(dns_dispatch_t *disp, isc_sockaddr_t *addrp);
|
||||
/*%<
|
||||
* Return the local address for this dispatch.
|
||||
@@ -408,7 +408,7 @@ dns_dispatch_getlocaladdress(dns_dispatch_t *disp, isc_sockaddr_t *addrp);
|
||||
*\li addrp to be non null.
|
||||
*
|
||||
* Returns:
|
||||
*\li ISC_R_SUCCESS
|
||||
*\li ISC_R_SUCCESS
|
||||
*\li ISC_R_NOTIMPLEMENTED
|
||||
*/
|
||||
|
||||
@@ -434,7 +434,7 @@ dns_dispatch_changeattributes(dns_dispatch_t *disp,
|
||||
* new = (old & ~mask) | (attributes & mask)
|
||||
* \endcode
|
||||
*
|
||||
* This function has a side effect when #DNS_DISPATCHATTR_NOLISTEN changes.
|
||||
* This function has a side effect when #DNS_DISPATCHATTR_NOLISTEN changes.
|
||||
* When the flag becomes off, the dispatch will start receiving on the
|
||||
* corresponding socket. When the flag becomes on, receive events on the
|
||||
* corresponding socket will be canceled.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: stats.h,v 1.13.128.3 2008/04/03 06:10:21 marka Exp $ */
|
||||
/* $Id: stats.h,v 1.13.128.4 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
#ifndef DNS_STATS_H
|
||||
#define DNS_STATS_H 1
|
||||
@@ -75,7 +75,7 @@ enum {
|
||||
dns_zonestatscounter_max = 13,
|
||||
|
||||
/*%
|
||||
* Query statistics counters (obsolete).
|
||||
* Query statistics counters (obsolete).
|
||||
*/
|
||||
dns_statscounter_success = 0, /*%< Successful lookup */
|
||||
dns_statscounter_referral = 1, /*%< Referral result */
|
||||
@@ -222,7 +222,7 @@ dns_stats_detach(dns_stats_t **statsp);
|
||||
void
|
||||
dns_generalstats_increment(dns_stats_t *stats, dns_statscounter_t counter);
|
||||
/*%<
|
||||
* Increment the counter-th counter of stats.
|
||||
* Increment the counter-th counter of stats.
|
||||
*
|
||||
* Requires:
|
||||
*\li 'stats' is a valid dns_stats_t created by dns_generalstats_create().
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: view.h,v 1.107.128.3 2008/04/03 06:10:21 marka Exp $ */
|
||||
/* $Id: view.h,v 1.107.128.4 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
#ifndef DNS_VIEW_H
|
||||
#define DNS_VIEW_H 1
|
||||
@@ -843,7 +843,7 @@ dns_view_getresstats(dns_view_t *view, dns_stats_t **statsp);
|
||||
* Requires:
|
||||
* \li 'view' is valid and is not frozen.
|
||||
*
|
||||
*\li 'statsp' != NULL && '*statsp' != NULL
|
||||
*\li 'statsp' != NULL && '*statsp' != NULL
|
||||
*/
|
||||
|
||||
void
|
||||
@@ -869,7 +869,7 @@ dns_view_getresquerystats(dns_view_t *view, dns_stats_t **statsp);
|
||||
* Requires:
|
||||
* \li 'view' is valid and is not frozen.
|
||||
*
|
||||
*\li 'statsp' != NULL && '*statsp' != NULL
|
||||
*\li 'statsp' != NULL && '*statsp' != NULL
|
||||
*/
|
||||
|
||||
#endif /* DNS_VIEW_H */
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Portions Copyright (C) 2005-2007 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Portions Copyright (C) 2005-2008 Internet Systems Consortium, Inc. ("ISC")
|
||||
* Portions Copyright (C) 1999-2001 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
@@ -50,7 +50,7 @@
|
||||
* USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sdlz.c,v 1.14.94.1 2008/04/03 06:10:20 marka Exp $ */
|
||||
/* $Id: sdlz.c,v 1.14.94.2 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1329,7 +1329,7 @@ dns_sdlzallowzonexfr(void *driverarg, void *dbdata, isc_mem_t *mctx,
|
||||
return (result);
|
||||
isc_buffer_putuint8(&b2, 0);
|
||||
|
||||
/* make sure strings are always lowercase */
|
||||
/* make sure strings are always lowercase */
|
||||
dns_sdlz_tolower(namestr);
|
||||
dns_sdlz_tolower(clientstr);
|
||||
|
||||
@@ -1442,7 +1442,7 @@ dns_sdlzfindzone(void *driverarg, void *dbdata, isc_mem_t *mctx,
|
||||
return (result);
|
||||
isc_buffer_putuint8(&b, 0);
|
||||
|
||||
/* make sure strings are always lowercase */
|
||||
/* make sure strings are always lowercase */
|
||||
dns_sdlz_tolower(namestr);
|
||||
|
||||
/* Call SDLZ driver's find zone method */
|
||||
@@ -1573,7 +1573,7 @@ dns_sdlz_putrr(dns_sdlzlookup_t *lookup, const char *type, dns_ttl_t ttl,
|
||||
return (ISC_R_SUCCESS);
|
||||
|
||||
failure:
|
||||
if (rdatabuf != NULL)
|
||||
if (rdatabuf != NULL)
|
||||
isc_buffer_free(&rdatabuf);
|
||||
if (lex != NULL)
|
||||
isc_lex_destroy(&lex);
|
||||
|
||||
+4
-4
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: stats.c,v 1.12.128.3 2008/04/03 06:10:20 marka Exp $ */
|
||||
/* $Id: stats.c,v 1.12.128.4 2008/04/03 06:20:34 tbox Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -112,7 +112,7 @@ struct dns_stats {
|
||||
* XXX: this approach is weird for non-threaded build because the
|
||||
* additional memory and the copy overhead could be avoided. We prefer
|
||||
* simplicity here, however, under the assumption that this function
|
||||
* should be only rarely called.
|
||||
* should be only rarely called.
|
||||
*/
|
||||
isc_uint64_t *copiedcounters;
|
||||
};
|
||||
@@ -129,7 +129,7 @@ create_stats(isc_mem_t *mctx, dns_statstype_t type, int ncounters,
|
||||
stats = isc_mem_get(mctx, sizeof(*stats));
|
||||
if (stats == NULL)
|
||||
return (ISC_R_NOMEMORY);
|
||||
|
||||
|
||||
result = isc_mutex_init(&stats->lock);
|
||||
if (result != ISC_R_SUCCESS)
|
||||
goto clean_stats;
|
||||
@@ -287,7 +287,7 @@ decrementcounter(dns_stats_t *stats, int counter) {
|
||||
static void
|
||||
copy_counters(dns_stats_t *stats) {
|
||||
int i;
|
||||
|
||||
|
||||
#ifdef ISC_RWLOCK_USEATOMIC
|
||||
/*
|
||||
* We use a "write" lock before "reading" the statistics counters as
|
||||
|
||||
Reference in New Issue
Block a user