mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
- Don't parse for semi twice in failover state.
- Parse client-updates in allow/deny statements.
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: confpars.c,v 1.128 2000/11/28 23:50:01 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: confpars.c,v 1.129 2001/01/11 23:15:31 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -791,8 +791,6 @@ void parse_failover_peer (cfile, group, type)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
split = atoi (val);
|
split = atoi (val);
|
||||||
if (!parse_semi (cfile))
|
|
||||||
goto badsplit;
|
|
||||||
if (split > 255) {
|
if (split > 255) {
|
||||||
parse_warn (cfile, "split must be < 256");
|
parse_warn (cfile, "split must be < 256");
|
||||||
} else {
|
} else {
|
||||||
@@ -2970,6 +2968,11 @@ int parse_allow_deny (oc, cfile, flag)
|
|||||||
&server_options [SV_DECLINES]);
|
&server_options [SV_DECLINES]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CLIENT_UPDATES:
|
||||||
|
status = option_cache (oc, (struct data_string *)0, data,
|
||||||
|
&server_options [SV_CLIENT_UPDATES]);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
parse_warn (cfile, "expecting allow/deny key");
|
parse_warn (cfile, "expecting allow/deny key");
|
||||||
skip_to_semi (cfile);
|
skip_to_semi (cfile);
|
||||||
|
Reference in New Issue
Block a user