diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2007-03-22 06:12:11 +0000 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2010-08-06 15:37:36 +0200 |
commit | a25d20838f62d3a63e87c616e19eeab5e72262d9 (patch) | |
tree | c0d3abe6efa07736292d367770075bfbd5a5b305 | |
parent | fb7626d31e760b0995679de9a56caea3831bbd49 (diff) |
supported an address pool that has only one entry.
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | config.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 @@ -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)); |