Error dhcp constructors on platforms where no interface detection.

This commit is contained in:
Simon Kelley
2012-12-17 22:00:53 +00:00
parent 8445f5d2e2
commit bb86e858b6

View File

@@ -179,8 +179,12 @@ int main (int argc, char **argv)
{
if (context->flags & CONTEXT_DHCP)
daemon->doing_dhcp6 = 1;
if (context->flags & (CONTEXT_RA_ONLY | CONTEXT_RA_NAME | CONTEXT_RA_STATELESS))
if (context->flags & CONTEXT_RA)
daemon->doing_ra = 1;
#ifndef HAVE_LINUX_NETWORK
if (context->flags & CONTEXT_TEMPLATE)
die (_("dhcp-range contructor not available on this platform"), NULL, EC_BADCONF);
#endif
}
}
# endif