From: Ted Lemon Date: Mon, 25 Oct 1999 01:52:52 +0000 (+0000) Subject: - Set DYNAMIC flag in host decl if dynamic keyword is given, otherwise X-Git-Tag: BCTEL_SPECIAL_19991124~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b86799bfcb271b832dc0988f77c7e11a6518cdcc;p=thirdparty%2Fdhcp.git - Set DYNAMIC flag in host decl if dynamic keyword is given, otherwise set STATIC. --- diff --git a/server/confpars.c b/server/confpars.c index 293bc0815..ed3d4a474 100644 --- a/server/confpars.c +++ b/server/confpars.c @@ -22,7 +22,7 @@ #ifndef lint static char copyright[] = -"$Id: confpars.c,v 1.89 1999/10/24 17:19:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: confpars.c,v 1.90 1999/10/25 01:52:52 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -1117,6 +1117,11 @@ void parse_host_declaration (cfile, group) } } + if (dynamicp) + host -> flags |= HOST_DECL_DYNAMIC; + else + host -> flags |= HOST_DECL_STATIC; + status = enter_host (host, dynamicp, 0); if (status != ISC_R_SUCCESS) parse_warn (cfile, "host %s: %s", host -> name,