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,7 @@ void lease6_filter(int lease_type, int iaid, struct dhcp_context *context)
continue;
/* leases on the wrong interface get filtered out here */
if (!address6_available(context, (struct in6_addr *)&lease->hwaddr, NULL))
if (!is_addr_in_context6(context, (struct in6_addr *)&lease->hwaddr))
lease->flags |= LEASE_USED;
}
}