Commit 486479e9 authored by Simon Kelley's avatar Simon Kelley

Check prefix length when contructing DHCP ranges.

parent 3bb51da8
......@@ -624,7 +624,8 @@ static int construct_worker(struct in6_addr *local, int prefix,
}
}
else if (wildcard_match(template->template_interface, ifrn_name))
else if (wildcard_match(template->template_interface, ifrn_name) &&
template->prefix == prefix)
{
start6 = *local;
setaddr6part(&start6, addr6part(&template->start6));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment