From b86799bfcb271b832dc0988f77c7e11a6518cdcc Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Mon, 25 Oct 1999 01:52:52 +0000 Subject: [PATCH] - Set DYNAMIC flag in host decl if dynamic keyword is given, otherwise set STATIC. --- server/confpars.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/confpars.c b/server/confpars.c index 293bc081..ed3d4a47 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,