* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: query.c,v 1.368 2011/09/02 21:55:16 each Exp $ */
+/* $Id: query.c,v 1.369 2011/09/02 23:46:31 tbox Exp $ */
/*! \file */
dns_message_puttempname(client->message, &fname);
if (n == 0) {
- /*
+ /*
* No matching rdatasets found in cache. If we were
* searching for RRSIG/SIG, that's probably okay;
* otherwise this is an error condition.
if (!is_zone) {
authoritative = ISC_FALSE;
dns_rdatasetiter_destroy(&rdsiter);
- client->attributes &= ~NS_CLIENTATTR_RA;
+ client->attributes &= ~NS_CLIENTATTR_RA;
goto addauth;
}
dns_rdatasetiter_destroy(&rdsiter);
fname = query_newname(client, dbuf, &b);
goto nxrrset_rrsig;
- } else
+ } else
result = DNS_R_SERVFAIL;
}
#!/bin/sh
+#
+# Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+#
+# Permission to use, copy, modify, and/or distribute this software for any
+# purpose with or without fee is hereby granted, provided that the above
+# copyright notice and this permission notice appear in all copies.
+#
+# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+# PERFORMANCE OF THIS SOFTWARE.
+
+# $Id: clean.sh,v 1.3 2011/09/02 23:46:31 tbox Exp $
+
rm -rf zones
rm -f named.conf
#!/bin/sh
#
-# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
+# Copyright (C) 2004, 2007, 2011 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2000, 2001 Internet Software Consortium.
#
# Permission to use, copy, modify, and/or distribute this software for any
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
-# $Id: setup.sh,v 1.9 2011/09/02 02:25:07 marka Exp $
+# $Id: setup.sh,v 1.10 2011/09/02 23:46:32 tbox Exp $
cp -f ns1/example1.db ns1/example.db
rm -f ns1/example.db.jnl ns2/example.bk ns2/example.bk.jnl
/*
- * Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004-2007, 2011 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zt.h,v 1.39 2011/09/02 21:15:37 each Exp $ */
+/* $Id: zt.h,v 1.40 2011/09/02 23:46:32 tbox Exp $ */
#ifndef DNS_ZT_H
#define DNS_ZT_H 1
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: dnstest.c,v 1.5 2011/09/02 21:15:37 each Exp $ */
+/* $Id: dnstest.c,v 1.6 2011/09/02 23:46:32 tbox Exp $ */
/*! \file */
/*
* Create a zone with origin 'name', return a pointer to the zone object in
* 'zonep'. If 'view' is set, add the zone to that view; otherwise, create
- * a new view for the purpose.
+ * a new view for the purpose.
*
* If the created view is going to be needed by the caller subsequently,
* then 'keepview' should be set to true; this will prevent the view
dns_test_setupzonemgr() {
isc_result_t result;
REQUIRE(zonemgr == NULL);
-
+
result = dns_zonemgr_create(mctx, taskmgr, timermgr, socketmgr,
&zonemgr);
return (result);
void
dns_test_closezonemgr() {
REQUIRE(zonemgr != NULL);
-
+
dns_zonemgr_shutdown(zonemgr);
dns_zonemgr_detach(&zonemgr);
}
+; Copyright (C) 2011 Internet Systems Consortium, Inc. ("ISC")
+;
+; Permission to use, copy, modify, and/or distribute this software for any
+; purpose with or without fee is hereby granted, provided that the above
+; copyright notice and this permission notice appear in all copies.
+;
+; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
+; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
+; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+; PERFORMANCE OF THIS SOFTWARE.
+
+; $Id: zone1.db,v 1.3 2011/09/02 23:46:32 tbox Exp $
+
$TTL 1000
@ in soa localhost. postmaster.localhost. (
1993050801 ;serial
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zt_test.c,v 1.2 2011/09/02 21:15:37 each Exp $ */
+/* $Id: zt_test.c,v 1.3 2011/09/02 23:46:32 tbox Exp $ */
/*! \file */
result = dns_test_makezone("foo", &zone, NULL, ISC_TRUE);
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
-
+
view = dns_zone_getview(zone);
ATF_REQUIRE(view->zonetable != NULL);
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.c,v 1.629 2011/09/02 21:15:36 each Exp $ */
+/* $Id: zone.c,v 1.630 2011/09/02 23:46:32 tbox Exp $ */
/*! \file */
LOCK_ZONE(zone);
DNS_ZONE_CLRFLAG(zone, DNS_ZONEFLG_LOADPENDING);
UNLOCK_ZONE(zone);
-
+
/* Inform the zone table we've finished loading */
if (asl->loaded != NULL)
(asl->loaded)(asl->loaded_arg, zone, task);
* We always set all tasks in the zone-load task pool to
* privileged. This prevents other tasks in the system from
* running while the server task manager is in privileged
- * mode.
+ * mode.
*
* NOTE: If we start using task privileges for any other
* part of the system than zone tasks, then this will need to be
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zt.c,v 1.51 2011/09/02 21:15:36 each Exp $ */
+/* $Id: zt.c,v 1.52 2011/09/02 23:46:32 tbox Exp $ */
/*! \file */
}
/*
- * Initiates asynchronous loading of zone 'zone'. 'callback' is a
+ * Initiates asynchronous loading of zone 'zone'. 'callback' is a
* pointer to a function which will be used to inform the caller when
* the zone loading is complete.
*/
/*
- * Copyright (C) 2004, 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2006, 2007, 2011 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1997-2002 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: list.h,v 1.25 2011/09/02 21:15:38 each Exp $ */
+/* $Id: list.h,v 1.26 2011/09/02 23:46:33 tbox Exp $ */
#ifndef ISC_LIST_H
#define ISC_LIST_H 1
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task.h,v 1.72 2011/09/02 21:15:38 each Exp $ */
+/* $Id: task.h,v 1.73 2011/09/02 23:46:33 tbox Exp $ */
#ifndef ISC_TASK_H
#define ISC_TASK_H 1
isc_task_setprivilege(isc_task_t *task, isc_boolean_t priv);
/*%<
* Set or unset the task's "privileged" flag depending on the value of
- * 'priv'.
+ * 'priv'.
*
* Under normal circumstances this flag has no effect on the task behavior,
* but when the task manager has been set to privileged exeuction mode via
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task.c,v 1.118 2011/09/02 21:15:37 each Exp $ */
+/* $Id: task.c,v 1.119 2011/09/02 23:46:32 tbox Exp $ */
/*! \file
* \author Principal Author: Bob Halley
push_readyq(manager, task);
#else
ENQUEUE(new_ready_tasks, task, ready_link);
- if ((task->flags & TASK_F_PRIVILEGED) != 0)
+ if ((task->flags & TASK_F_PRIVILEGED) != 0)
ENQUEUE(new_priority_tasks, task,
ready_priority_link);
#endif
/*
- * Copyright (C) 2009, 2010 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2009-2011 Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task_api.c,v 1.8 2011/09/02 21:15:38 each Exp $ */
+/* $Id: task_api.c,v 1.9 2011/09/02 23:46:32 tbox Exp $ */
#include <config.h>
/*
- * Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (C) 2004, 2005, 2007, 2009, 2011 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2000, 2001 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task_p.h,v 1.14 2011/09/02 21:15:38 each Exp $ */
+/* $Id: task_p.h,v 1.15 2011/09/02 23:46:32 tbox Exp $ */
#ifndef ISC_TASK_P_H
#define ISC_TASK_P_H
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: task_test.c,v 1.2 2011/09/02 21:15:38 each Exp $ */
+/* $Id: task_test.c,v 1.3 2011/09/02 23:46:33 tbox Exp $ */
/*! \file */
ATF_REQUIRE_EQ(result, ISC_R_SUCCESS);
/* First event */
- event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
set, &a, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
ATF_CHECK_EQ(a, 0);
isc_task_send(task, &event);
- event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task, ISC_TASKEVENT_TEST,
set, &b, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
ATF_CHECK(!isc_task_privilege(task2));
/* First event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
set, &a, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task1, &event);
/* Second event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
set, &b, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task2, &event);
/* Third event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
set, &c, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task1, &event);
/* Fourth event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
set, &d, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task1, &event);
/* Fifth event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
set, &e, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
ATF_CHECK(!isc_task_privilege(task2));
/* First event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
set_and_drop, &a, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task1, &event);
/* Second event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
set_and_drop, &b, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task2, &event);
/* Third event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
set_and_drop, &c, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task1, &event);
/* Fourth event: privileged */
- event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task1, ISC_TASKEVENT_TEST,
set_and_drop, &d, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);
isc_task_send(task1, &event);
/* Fifth event: not privileged */
- event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
+ event = isc_event_allocate(mctx, task2, ISC_TASKEVENT_TEST,
set_and_drop, &e, sizeof (isc_event_t));
ATF_REQUIRE(event != NULL);