Commit bb86e858 authored by Simon Kelley's avatar Simon Kelley

Error dhcp constructors on platforms where no interface detection.

parent 8445f5d2
...@@ -179,8 +179,12 @@ int main (int argc, char **argv) ...@@ -179,8 +179,12 @@ int main (int argc, char **argv)
{ {
if (context->flags & CONTEXT_DHCP) if (context->flags & CONTEXT_DHCP)
daemon->doing_dhcp6 = 1; 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; 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 # endif
......
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