Ignore template contexts where appropriate.

This commit is contained in:
Simon Kelley committed 2012-12-18 18:31:11 +00:00
1 parent 7558ecd9ac
commit 6e3dba3fde
2 files changed
+41 -36

No files matched your search

+2 -1
View File
@@ -214,7 +214,8 @@ static int complete_context6(struct in6_addr *local, int prefix,
for (context = daemon->dhcp6; context; context = context->next)
{
if (prefix == context->prefix &&
if (!(context->flags & CONTEXT_TEMPLATE) &&
prefix == context->prefix &&
is_same_net6(local, &context->start6, prefix) &&
is_same_net6(local, &context->end6, prefix))
{