#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"
#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;
#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;
#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;
#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;
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);
};
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);
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);
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);
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);