]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3477] Checkpoint: todo syntax UTs
authorFrancis Dupont <fdupont@isc.org>
Wed, 3 Jul 2024 22:47:13 +0000 (00:47 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 1 Aug 2024 07:23:53 +0000 (09:23 +0200)
src/bin/dhcp4/dhcp4_parser.cc
src/bin/dhcp4/dhcp4_parser.yy

index 983d283fb89468e8ed49293be78fbb3d22faedc0..2187176eaca9260a8b7c7134d9cd6af65f8ab2df 100644 (file)
@@ -4127,7 +4127,7 @@ namespace isc { namespace dhcp {
 #line 2609 "dhcp4_parser.yy"
                                                {
     ctx.unique("socket-port", ctx.loc2pos(yystack_[2].location));
-    ElementPtr port(new StringElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
+    ElementPtr port(new IntElement(yystack_[0].value.as < int64_t > (), ctx.loc2pos(yystack_[0].location)));
     ctx.stack_.back()->set("socket-port", port);
 }
 #line 4134 "dhcp4_parser.cc"
@@ -4202,7 +4202,7 @@ namespace isc { namespace dhcp {
 #line 2663 "dhcp4_parser.yy"
              {
     ctx.unique("realm", ctx.loc2pos(yystack_[0].location));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 }
 #line 4208 "dhcp4_parser.cc"
     break;
@@ -4221,7 +4221,7 @@ namespace isc { namespace dhcp {
 #line 2672 "dhcp4_parser.yy"
                      {
     ctx.unique("directory", ctx.loc2pos(yystack_[0].location));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 }
 #line 4227 "dhcp4_parser.cc"
     break;
@@ -4295,7 +4295,7 @@ namespace isc { namespace dhcp {
 #line 2727 "dhcp4_parser.yy"
                      {
     ctx.unique("user-file", ctx.loc2pos(yystack_[0].location));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 }
 #line 4301 "dhcp4_parser.cc"
     break;
@@ -4314,7 +4314,7 @@ namespace isc { namespace dhcp {
 #line 2736 "dhcp4_parser.yy"
                              {
     ctx.unique("password-file", ctx.loc2pos(yystack_[0].location));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 }
 #line 4320 "dhcp4_parser.cc"
     break;
index b0190d83de5d159641d9340e3c5b6ac45c48edf6..17eaf2add8b9d72e8d5fa3b9f3e695e3938cbdc7 100644 (file)
@@ -2608,7 +2608,7 @@ control_socket_address: SOCKET_ADDRESS {
 
 control_socket_port: SOCKET_PORT COLON INTEGER {
     ctx.unique("socket-port", ctx.loc2pos(@1));
-    ElementPtr port(new StringElement($3, ctx.loc2pos(@3)));
+    ElementPtr port(new IntElement($3, ctx.loc2pos(@3)));
     ctx.stack_.back()->set("socket-port", port);
 };
 
@@ -2662,7 +2662,7 @@ auth_type_value: BASIC { $$ = ElementPtr(new StringElement("basic", ctx.loc2pos(
 
 realm: REALM {
     ctx.unique("realm", ctx.loc2pos(@1));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 } COLON STRING {
     ElementPtr realm(new StringElement($4, ctx.loc2pos(@4)));
     ctx.stack_.back()->set("realm", realm);
@@ -2671,7 +2671,7 @@ realm: REALM {
 
 directory: DIRECTORY {
     ctx.unique("directory", ctx.loc2pos(@1));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 } COLON STRING {
     ElementPtr directory(new StringElement($4, ctx.loc2pos(@4)));
     ctx.stack_.back()->set("directory", directory);
@@ -2726,7 +2726,7 @@ clients_param: user
 
 user_file: USER_FILE {
     ctx.unique("user-file", ctx.loc2pos(@1));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 } COLON STRING {
     ElementPtr user(new StringElement($4, ctx.loc2pos(@4)));
     ctx.stack_.back()->set("user-file", user);
@@ -2735,7 +2735,7 @@ user_file: USER_FILE {
 
 password_file: PASSWORD_FILE {
     ctx.unique("password-file", ctx.loc2pos(@1));
-    ctx.enter(ctx.NO_KEYWORDS);
+    ctx.enter(ctx.NO_KEYWORD);
 } COLON STRING {
     ElementPtr password(new StringElement($4, ctx.loc2pos(@4)));
     ctx.stack_.back()->set("password-file", password);