From: Ted Lemon Date: Thu, 1 Jul 1999 18:41:30 +0000 (+0000) Subject: ADD -> TOKEN_ADD; add tokens for ddns updates. X-Git-Tag: V3-BETA-1-PATCH-0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a04c61527d44aaf1b12bea018b14ae4e0bf596e;p=thirdparty%2Fdhcp.git ADD -> TOKEN_ADD; add tokens for ddns updates. --- diff --git a/common/conflex.c b/common/conflex.c index daf0e9c55..3a4ff61ec 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -22,7 +22,7 @@ #ifndef lint 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 */ #include "dhcpd.h" @@ -359,7 +359,7 @@ static enum dhcp_token intern (atom, dfv) if (!strcasecmp (atom + 1, "bandoned")) return ABANDONED; if (!strcasecmp (atom + 1, "dd")) - return ADD; + return TOKEN_ADD; if (!strcasecmp (atom + 1, "ll")) return ALL; if (!strcasecmp (atom + 1, "rray")) @@ -404,6 +404,10 @@ static enum dhcp_token intern (atom, dfv) return COMMUNICATIONS_INTERRUPTED; break; 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")) return DOMAIN; if (!strcasecmp (atom + 1, "eny")) diff --git a/includes/dhctoken.h b/includes/dhctoken.h index a957ef626..b9892497c 100644 --- a/includes/dhctoken.h +++ b/includes/dhctoken.h @@ -119,7 +119,7 @@ enum dhcp_token { CHECK = 339, EXTRACT_INT = 340, IF = 341, - ADD = 342, + TOKEN_ADD = 342, BREAK = 343, ELSE = 344, ELSIF = 345, @@ -177,6 +177,8 @@ enum dhcp_token { SPACE = 397, CONCAT = 398, ENCODE_INT = 399, + DDNS_FWD_NAME = 400, + DDNS_REV_NAME = 401, }; #define is_identifier(x) ((x) >= FIRST_TOKEN && \