From bb86e858b68cd81aee5d0c4d3a4fec62d96a9ae5 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Mon, 17 Dec 2012 22:00:53 +0000 Subject: [PATCH] Error dhcp constructors on platforms where no interface detection. --- src/dnsmasq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 4e2165b..591ed51 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -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