+1242. [bug] named-checkzone failed if a journal existed. [RT #2657]
+
1241. [bug] Drop received UDP messsages with a zero source port
as these are invariably forged. [RT #2621]
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: check-tool.c,v 1.6 2001/09/05 21:09:31 bwelling Exp $ */
+/* $Id: check-tool.c,v 1.7 2002/04/02 06:54:00 marka Exp $ */
#include <config.h>
static const char *dbtype[] = { "rbt" };
int debug = 0;
+isc_boolean_t nomerge = ISC_TRUE;
isc_result_t
setup_logging(isc_mem_t *mctx, isc_log_t **logp) {
dns_zone_setclass(zone, rdclass);
dns_zone_setoption(zone, DNS_ZONEOPT_MANYERRORS, ISC_TRUE);
+ dns_zone_setoption(zone, DNS_ZONEOPT_NOMERGE, nomerge);
CHECK(dns_zone_load(zone));
if (zonep != NULL){
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: check-tool.h,v 1.3 2001/09/03 08:21:46 marka Exp $ */
+/* $Id: check-tool.h,v 1.4 2002/04/02 06:54:02 marka Exp $ */
#ifndef CHECK_TOOL_H
#define CHECK_TOOL_H
const char *classname, dns_zone_t **zonep);
extern int debug;
+extern isc_boolean_t nomerge;
ISC_LANG_ENDDECLS
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: named-checkconf.c,v 1.22 2002/02/20 03:32:50 marka Exp $ */
+/* $Id: named-checkconf.c,v 1.23 2002/04/02 06:54:03 marka Exp $ */
#include <config.h>
isc_result_t result;
int exit_status = 0;
isc_boolean_t load_zones = ISC_FALSE;
+
+ isc_mem_debugging |= ISC_MEM_DEBUGRECORD;
while ((c = isc_commandline_parse(argc, argv, "dt:vz")) != EOF) {
switch (c) {
debug++;
break;
+ case 'm':
+ nomerge = ISC_FALSE;
+ break;
+
case 't':
result = isc_dir_chroot(isc_commandline_argument);
if (result != ISC_R_SUCCESS) {
- WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-->
-<!-- $Id: named-checkconf.docbook,v 1.4 2001/09/04 00:32:32 marka Exp $ -->
+<!-- $Id: named-checkconf.docbook,v 1.5 2002/04/02 06:54:05 marka Exp $ -->
<refentry>
<refentryinfo>
<cmdsynopsis>
<command>named-checkconf</command>
<arg><option>-v</option></arg>
+ <arg><option>-m</option></arg>
<arg><option>-t <replaceable class="parameter">directory</replaceable></option></arg>
<arg choice="req">filename</arg>
<arg><option>-z</option></arg>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>-m</term>
+ <listitem>
+ <para>
+ When loading a zonefile merge the journal if it exists.
+ </para>
+ </listitem>
+ </varlistentry>
+
<varlistentry>
<term>filename</term>
<listitem>
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: named-checkzone.c,v 1.20 2002/02/20 03:32:53 marka Exp $ */
+/* $Id: named-checkzone.c,v 1.21 2002/04/02 06:54:06 marka Exp $ */
#include <config.h>
char *classname = classname_in;
const char *workdir = NULL;
- while ((c = isc_commandline_parse(argc, argv, "c:dqist:vw:")) != EOF) {
+ while ((c = isc_commandline_parse(argc, argv, "c:dimqst:vw:")) != EOF) {
switch (c) {
case 'c':
classname = isc_commandline_argument;
debug++;
break;
+ case 'm':
+ nomerge = ISC_FALSE;
+ break;
+
case 'q':
quiet++;
break;
- WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-->
-<!-- $Id: named-checkzone.docbook,v 1.4 2001/09/15 02:05:35 marka Exp $ -->
+<!-- $Id: named-checkzone.docbook,v 1.5 2002/04/02 06:54:07 marka Exp $ -->
<refentry>
<refentryinfo>
<cmdsynopsis>
<command>named-checkzone</command>
<arg><option>-d</option></arg>
+ <arg><option>-m</option></arg>
<arg><option>-q</option></arg>
<arg><option>-v</option></arg>
<arg><option>-c <replaceable class="parameter">class</replaceable></option></arg>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term>-m</term>
+ <listitem>
+ <para>
+ When loading the zone file merge the journal if it exists.
+ </para>
+ </listitem>
+
<varlistentry>
<term>-c <replaceable class="parameter">class</replaceable></term>
<listitem>
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.h,v 1.113 2002/02/20 03:34:42 marka Exp $ */
+/* $Id: zone.h,v 1.114 2002/04/02 06:53:59 marka Exp $ */
#ifndef DNS_ZONE_H
#define DNS_ZONE_H 1
#define DNS_ZONEOPT_NOTIFY 0x00000008U /* perform NOTIFY */
#define DNS_ZONEOPT_MANYERRORS 0x00000010U /* return many errors on load */
#define DNS_ZONEOPT_IXFRFROMDIFFS 0x00000020U /* calculate differences */
+#define DNS_ZONEOPT_NOMERGE 0x00000040U /* don't merge journal */
#ifndef NOMINUM_PUBLIC
/*
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: zone.c,v 1.365 2002/03/27 04:48:21 marka Exp $ */
+/* $Id: zone.c,v 1.366 2002/04/02 06:53:58 marka Exp $ */
#include <config.h>
* Apply update log, if any, on initial load.
*/
if (zone->journal != NULL &&
+ ! DNS_ZONE_OPTION(zone, DNS_ZONEOPT_NOMERGE) &&
! DNS_ZONE_FLAG(zone, DNS_ZONEFLG_LOADED))
{
result = dns_journal_rollforward(zone->mctx, db,