diff options
author | Ted Lemon <source@isc.org> | 1999-10-25 01:52:52 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1999-10-25 01:52:52 +0000 |
commit | b86799bfcb271b832dc0988f77c7e11a6518cdcc (patch) | |
tree | e64fdcd1082050e38a7cf3ef74c4f26716307b45 /server/confpars.c | |
parent | e96b71e15cff575e57e38b5469a72b3857fce0bf (diff) | |
download | isc-dhcp-b86799bfcb271b832dc0988f77c7e11a6518cdcc.tar.gz |
- Set DYNAMIC flag in host decl if dynamic keyword is given, otherwise
set STATIC.
Diffstat (limited to 'server/confpars.c')
-rw-r--r-- | server/confpars.c | 7 |
1 files changed, 6 insertions, 1 deletions
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, |