Address allocation tweaking - lease outside dhcp-range but in subnet.

This commit is contained in:
Simon Kelley
2012-09-16 22:15:56 +01:00
parent 8b46061e73
commit b269221c00
4 changed files with 14 additions and 7 deletions

View File

@@ -582,7 +582,6 @@ static int dhcp6_no_relay(int msg_type, struct in6_addr *link_address, struct dh
if (!addrp &&
(lease = lease6_find(clid, clid_len,
ia_type == OPTION6_IA_NA ? LEASE_NA : LEASE_TA, iaid, NULL)) &&
address6_available(context, (struct in6_addr *)&lease->hwaddr, tags) &&
!config_find_by_address6(daemon->dhcp_conf, (struct in6_addr *)&lease->hwaddr, 128, 0))
addrp = (struct in6_addr *)&lease->hwaddr;