mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
ADD -> TOKEN_ADD; add tokens for ddns updates.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
"$Id: conflex.c,v 1.45 1999/05/27 12:39:22 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
"$Id: conflex.c,v 1.46 1999/07/01 18:40:47 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -359,7 +359,7 @@ static enum dhcp_token intern (atom, dfv)
|
|||||||
if (!strcasecmp (atom + 1, "bandoned"))
|
if (!strcasecmp (atom + 1, "bandoned"))
|
||||||
return ABANDONED;
|
return ABANDONED;
|
||||||
if (!strcasecmp (atom + 1, "dd"))
|
if (!strcasecmp (atom + 1, "dd"))
|
||||||
return ADD;
|
return TOKEN_ADD;
|
||||||
if (!strcasecmp (atom + 1, "ll"))
|
if (!strcasecmp (atom + 1, "ll"))
|
||||||
return ALL;
|
return ALL;
|
||||||
if (!strcasecmp (atom + 1, "rray"))
|
if (!strcasecmp (atom + 1, "rray"))
|
||||||
@@ -404,6 +404,10 @@ static enum dhcp_token intern (atom, dfv)
|
|||||||
return COMMUNICATIONS_INTERRUPTED;
|
return COMMUNICATIONS_INTERRUPTED;
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
|
if (!strcasecmp (atom + 1, "dns-fwd-name"))
|
||||||
|
return DDNS_FWD_NAME;
|
||||||
|
if (!strcasecmp (atom + 1, "dns-rev-name"))
|
||||||
|
return DDNS_REV_NAME;
|
||||||
if (!strcasecmp (atom + 1, "omain"))
|
if (!strcasecmp (atom + 1, "omain"))
|
||||||
return DOMAIN;
|
return DOMAIN;
|
||||||
if (!strcasecmp (atom + 1, "eny"))
|
if (!strcasecmp (atom + 1, "eny"))
|
||||||
|
@@ -119,7 +119,7 @@ enum dhcp_token {
|
|||||||
CHECK = 339,
|
CHECK = 339,
|
||||||
EXTRACT_INT = 340,
|
EXTRACT_INT = 340,
|
||||||
IF = 341,
|
IF = 341,
|
||||||
ADD = 342,
|
TOKEN_ADD = 342,
|
||||||
BREAK = 343,
|
BREAK = 343,
|
||||||
ELSE = 344,
|
ELSE = 344,
|
||||||
ELSIF = 345,
|
ELSIF = 345,
|
||||||
@@ -177,6 +177,8 @@ enum dhcp_token {
|
|||||||
SPACE = 397,
|
SPACE = 397,
|
||||||
CONCAT = 398,
|
CONCAT = 398,
|
||||||
ENCODE_INT = 399,
|
ENCODE_INT = 399,
|
||||||
|
DDNS_FWD_NAME = 400,
|
||||||
|
DDNS_REV_NAME = 401,
|
||||||
};
|
};
|
||||||
|
|
||||||
#define is_identifier(x) ((x) >= FIRST_TOKEN && \
|
#define is_identifier(x) ((x) >= FIRST_TOKEN && \
|
||||||
|
Reference in New Issue
Block a user