]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
ADD -> TOKEN_ADD; add tokens for ddns updates.
authorTed Lemon <source@isc.org>
Thu, 1 Jul 1999 18:41:30 +0000 (18:41 +0000)
committerTed Lemon <source@isc.org>
Thu, 1 Jul 1999 18:41:30 +0000 (18:41 +0000)
common/conflex.c
includes/dhctoken.h

index daf0e9c556d2741f70461cd476450aeb7a9eedca..3a4ff61ecfafa59f1e6ec75a8aacdb9ab7f8dc8a 100644 (file)
@@ -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"))
index a957ef626f7db32d59279de6b2b6d66b0909aaf5..b9892497c664258ae92cf3173bac2ed3c23a5f22 100644 (file)
@@ -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 &&  \