log_zone_warning(zone->name, "zone file changed without SOA serial update");
break;
case KNOT_ERANGE:
- log_zone_warning(zone->name, "zone file changed, but SOA serial decreased");
+ if (serial_compare(zone->zonefile.serial, zone_contents_serial(zone->contents)) == SERIAL_INCOMPARABLE) {
+ log_zone_warning(zone->name, "zone file changed with incomparable SOA serial");
+ } else {
+ log_zone_warning(zone->name, "zone file changed with decreased SOA serial");
+ }
break;
}
goto cleanup;
-/* Copyright (C) 2019 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
+/* Copyright (C) 2022 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdbool.h>
#include <stdint.h>
+#define SERIAL_MAX_INCREMENT 2147483647
+
/*!
* \brief result of serial comparison. LOWER means that the first serial is lower that the second.
*