aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSUZUKI, Shinsuke <suz@kame.net>2007-03-22 06:12:11 +0000
committerBjørn Mork <bjorn@mork.no>2010-08-06 15:37:36 +0200
commita25d20838f62d3a63e87c616e19eeab5e72262d9 (patch)
treec0d3abe6efa07736292d367770075bfbd5a5b305
parentfb7626d31e760b0995679de9a56caea3831bbd49 (diff)
supported an address pool that has only one entry.
-rw-r--r--CHANGES1
-rw-r--r--config.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index e688b90..488786b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,7 @@
* dhcp6s.c, lease.c: implemented DHCPv6 Decline message processing on DHCPv6 server.
* dhcp6s.c: fixed a Solicitation message validation as stated in RFC3315 15.2.
* dhcp6s.c: fixed a bug that Rebind does not work for IA-NA.
+ * config.c: supported an address pool that has only one entry.
2007-03-20 SUZUKI, Shinsuke <suz@kame.net>
* common.c: fixed a bug that IA-PD/IA-NA cannot coexist in one DHCP message
diff --git a/config.c b/config.c
index 9a4cad7..e116c85 100644
--- a/config.c
+++ b/config.c
@@ -2108,7 +2108,7 @@ create_pool(name, range)
dprintf(LOG_DEBUG, FNAME, "name=%s, range=%s->%s", name,
in6addr2str(&range->min, 0), in6addr2str(&range->max, 0));
- if (in6_addr_cmp(&range->min, &range->max) >= 0) {
+ if (in6_addr_cmp(&range->min, &range->max) > 0) {
dprintf(LOG_ERR, FNAME, "invalid address range %s->%s",
in6addr2str(&range->min, 0),
in6addr2str(&range->max, 0));