Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
a336d5f8
Commit
a336d5f8
authored
Jan 27, 2017
by
Francis Dupont
Browse files
[5061] Added port parameter
parent
58a9eca1
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp4/dhcp4_lexer.ll
View file @
a336d5f8
...
...
@@ -330,6 +330,16 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
}
}
\"
port\
" {
switch(driver.ctx_) {
case isc::dhcp::Parser4Context::LEASE_DATABASE:
case isc::dhcp::Parser4Context::HOSTS_DATABASE:
return isc::dhcp::Dhcp4Parser::make_PORT(driver.loc_);
default:
return isc::dhcp::Dhcp4Parser::make_STRING("
port
", driver.loc_);
}
}
\"
persist\
" {
switch(driver.ctx_) {
case isc::dhcp::Parser4Context::LEASE_DATABASE:
...
...
src/bin/dhcp4/dhcp4_parser.yy
View file @
a336d5f8
...
...
@@ -72,6 +72,7 @@ using namespace std;
USER "user"
PASSWORD "password"
HOST "host"
PORT "port"
PERSIST "persist"
LFC_INTERVAL "lfc-interval"
READONLY "readonly"
...
...
@@ -513,6 +514,7 @@ database_map_param: database_type
| user
| password
| host
| port
| name
| persist
| lfc_interval
...
...
@@ -558,6 +560,11 @@ host: HOST {
ctx.leave();
};
port: PORT COLON INTEGER {
ElementPtr p(new IntElement($3, ctx.loc2pos(@3)));
ctx.stack_.back()->set("port", p);
};
name: NAME {
ctx.enter(ctx.NO_KEYWORD);
} COLON STRING {
...
...
src/bin/dhcp6/dhcp6_lexer.ll
View file @
a336d5f8
...
...
@@ -530,6 +530,16 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
}
}
\"
port\
" {
switch(driver.ctx_) {
case isc::dhcp::Parser6Context::LEASE_DATABASE:
case isc::dhcp::Parser6Context::HOSTS_DATABASE:
return isc::dhcp::Dhcp6Parser::make_PORT(driver.loc_);
default:
return isc::dhcp::Dhcp6Parser::make_STRING("
port
", driver.loc_);
}
}
\"
persist\
" {
switch(driver.ctx_) {
case isc::dhcp::Parser6Context::LEASE_DATABASE:
...
...
src/bin/dhcp6/dhcp6_parser.yy
View file @
a336d5f8
...
...
@@ -63,6 +63,7 @@ using namespace std;
USER "user"
PASSWORD "password"
HOST "host"
PORT "port"
PERSIST "persist"
LFC_INTERVAL "lfc-interval"
READONLY "readonly"
...
...
@@ -498,6 +499,7 @@ database_map_param: database_type
| user
| password
| host
| port
| name
| persist
| lfc_interval
...
...
@@ -543,6 +545,11 @@ host: HOST {
ctx.leave();
};
port: PORT COLON INTEGER {
ElementPtr p(new IntElement($3, ctx.loc2pos(@3)));
ctx.stack_.back()->set("port", p);
};
name: NAME {
ctx.enter(ctx.NO_KEYWORD);
} COLON STRING {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment