case 67:
#line 274 "d2_parser.yy" // lalr1.cc:859
{
- if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65535 ) {
- error(yystack_[0].location, "port must be greater than zero but less than 65535");
+ if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65536 ) {
+ error(yystack_[0].location, "port must be greater than zero but less than 65536");
}
ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
ctx.stack_.back()->set("port", i);
case 127:
#line 486 "d2_parser.yy" // lalr1.cc:859
{
- if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65535 ) {
+ if (yystack_[0].value.as< int64_t > () <= 0 || yystack_[0].value.as< int64_t > () >= 65536 ) {
error(yystack_[0].location, "port must be greater than zero but less than 65536");
}
ElementPtr i(new IntElement(yystack_[0].value.as< int64_t > (), ctx.loc2pos(yystack_[0].location)));
};
port: PORT COLON INTEGER {
- if ($3 <= 0 || $3 >= 65535 ) {
- error(@3, "port must be greater than zero but less than 65535");
+ if ($3 <= 0 || $3 >= 65536 ) {
+ error(@3, "port must be greater than zero but less than 65536");
}
ElementPtr i(new IntElement($3, ctx.loc2pos(@3)));
ctx.stack_.back()->set("port", i);
};
dns_server_port: PORT COLON INTEGER {
- if ($3 <= 0 || $3 >= 65535 ) {
+ if ($3 <= 0 || $3 >= 65536 ) {
error(@3, "port must be greater than zero but less than 65536");
}
ElementPtr i(new IntElement($3, ctx.loc2pos(@3)));
// Cannot use port 0
config = makeParamsConfigString ("127.0.0.1", 0, 333, "UDP", "JSON");
- SYNTAX_ERROR(config, "<string>:1.40: port must be greater than zero but less than 65535");
+ SYNTAX_ERROR(config, "<string>:1.40: port must be greater than zero but less than 65536");
// Cannot use dns server timeout of 0
config = makeParamsConfigString ("127.0.0.1", 777, 0, "UDP", "JSON");
" \"dns-servers\" : [ "
" { \"ip-address\": \"127.0.0.3\" , "
" \"port\": -1 } ] } ";
- PARSE_FAIL(config, "<string>:1.111-112: port must be greater than zero but less than 65792");
+ PARSE_FAIL(config, "<string>:1.111-112: port must be greater than zero but less than 65536");
// Create a domain configuration without an defined key name
config = "{ \"name\": \"example.com\" , "
#-----
,{
"description" : "D2.forward-ddns.dhcp-ddns.dns-servers.port cannot be 0 ",
-"syntax-error" : "<string>:1.97: port must be greater than zero but less than 65792",
+"syntax-error" : "<string>:1.97: port must be greater than zero but less than 65536",
"data" :
{
"forward-ddns" :
#-----
,{
"description" : "D2.reverse-ddns.dhcp-ddns.dns-servers.port cannot be 0 ",
-"syntax-error" : "<string>:1.119: port must be greater than zero but less than 65792",
+"syntax-error" : "<string>:1.119: port must be greater than zero but less than 65536",
"data" :
{
"forward-ddns" : {},