mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-03 07:45:20 +00:00
Support allow/deny duplicates.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: conflex.c,v 1.59 1999/10/07 06:35:40 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: conflex.c,v 1.60 1999/10/20 20:55:45 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@@ -491,6 +491,8 @@ static enum dhcp_token intern (atom, dfv)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!strcasecmp (atom + 1, "uplicates"))
|
||||
return DUPLICATES;
|
||||
break;
|
||||
case 'e':
|
||||
if (isascii (atom [1]) && tolower (atom [1]) == 'x') {
|
||||
@@ -503,7 +505,7 @@ static enum dhcp_token intern (atom, dfv)
|
||||
if (!strcasecmp (atom + 2, "pire"))
|
||||
return EXPIRE;
|
||||
}
|
||||
if (!strcasecmp (atom + 2, "ncode-int"))
|
||||
if (!strcasecmp (atom + 1, "ncode-int"))
|
||||
return ENCODE_INT;
|
||||
if (!strcasecmp (atom + 1, "thernet"))
|
||||
return ETHERNET;
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: parse.c,v 1.49 1999/10/20 19:12:32 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: parse.c,v 1.50 1999/10/20 20:55:44 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@@ -2769,6 +2769,11 @@ int parse_allow_deny (oc, cfile, flag)
|
||||
&server_options [SV_BOOT_UNKNOWN_CLIENTS]));
|
||||
break;
|
||||
|
||||
case DUPLICATES:
|
||||
status = option_cache (oc, (struct data_string *)0, data,
|
||||
&server_options [SV_DUPLICATES]);
|
||||
break;
|
||||
|
||||
default:
|
||||
parse_warn (cfile, "expecting allow/deny key");
|
||||
skip_to_semi (cfile);
|
||||
|
@@ -22,7 +22,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char copyright[] =
|
||||
"$Id: tables.c,v 1.30 1999/10/19 15:27:27 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
"$Id: tables.c,v 1.31 1999/10/20 20:55:45 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "dhcpd.h"
|
||||
@@ -853,7 +853,7 @@ struct option server_options [256] = {
|
||||
{ "ddns-rev-domainname", "t", &server_universe, 25 },
|
||||
{ "lease-file-name", "t", &server_universe, 26 },
|
||||
{ "pid-file-name", "t", &server_universe, 27 },
|
||||
{ "option-28", "X", &server_universe, 28 },
|
||||
{ "duplicates", "f", &server_universe, 28 },
|
||||
{ "option-29", "X", &server_universe, 29 },
|
||||
{ "option-30", "X", &server_universe, 30 },
|
||||
{ "option-31", "X", &server_universe, 31 },
|
||||
|
@@ -198,7 +198,8 @@ enum dhcp_token {
|
||||
INFINITE = 416,
|
||||
DELETED = 417,
|
||||
UPDATED_DNS_RR = 418,
|
||||
DNS_DELETE = 419
|
||||
DNS_DELETE = 419,
|
||||
DUPLICATES = 420
|
||||
};
|
||||
|
||||
#define is_identifier(x) ((x) >= FIRST_TOKEN && \
|
||||
|
Reference in New Issue
Block a user