diff options
author | Marcin Siodelski <marcin@isc.org> | 2023-01-12 21:43:44 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2023-01-17 11:26:51 +0100 |
commit | e471cd608634c8af792d9e507d37a01d5a3c63a7 (patch) | |
tree | 80799008799db1807fdfc251fc1060dc5fb9f2b6 /src/bin/dhcp6/dhcp6_parser.yy | |
parent | [#2688] Documented new config parameters (diff) | |
download | kea-e471cd608634c8af792d9e507d37a01d5a3c63a7.tar.xz kea-e471cd608634c8af792d9e507d37a01d5a3c63a7.zip |
[#2688] Updated DHCP server parsers
Diffstat (limited to 'src/bin/dhcp6/dhcp6_parser.yy')
-rw-r--r-- | src/bin/dhcp6/dhcp6_parser.yy | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/bin/dhcp6/dhcp6_parser.yy b/src/bin/dhcp6/dhcp6_parser.yy index 9928d91f63..ebb26c4b4d 100644 --- a/src/bin/dhcp6/dhcp6_parser.yy +++ b/src/bin/dhcp6/dhcp6_parser.yy @@ -78,6 +78,9 @@ using namespace std; LFC_INTERVAL "lfc-interval" READONLY "readonly" CONNECT_TIMEOUT "connect-timeout" + READ_TIMEOUT "read-timeout" + WRITE_TIMEOUT "write-timeout" + TCP_USER_TIMEOUT "tcp-user-timeout" MAX_RECONNECT_TRIES "max-reconnect-tries" RECONNECT_WAIT_TIME "reconnect-wait-time" ON_FAIL "on-fail" @@ -963,6 +966,9 @@ database_map_param: database_type | lfc_interval | readonly | connect_timeout + | read_timeout + | write_timeout + | tcp_user_timeout | max_reconnect_tries | reconnect_wait_time | on_fail @@ -1053,6 +1059,25 @@ connect_timeout: CONNECT_TIMEOUT COLON INTEGER { ctx.stack_.back()->set("connect-timeout", n); }; +read_timeout: READ_TIMEOUT COLON INTEGER { + ctx.unique("read-timeout", ctx.loc2pos(@1)); + ElementPtr n(new IntElement($3, ctx.loc2pos(@3))); + ctx.stack_.back()->set("connect-timeout", n); +}; + +write_timeout: WRITE_TIMEOUT COLON INTEGER { + ctx.unique("write-timeout", ctx.loc2pos(@1)); + ElementPtr n(new IntElement($3, ctx.loc2pos(@3))); + ctx.stack_.back()->set("write-timeout", n); +}; + +tcp_user_timeout: TCP_USER_TIMEOUT COLON INTEGER { + ctx.unique("tcp-user-timeout", ctx.loc2pos(@1)); + ElementPtr n(new IntElement($3, ctx.loc2pos(@3))); + ctx.stack_.back()->set("tcp-user-timeout", n); +}; + + reconnect_wait_time: RECONNECT_WAIT_TIME COLON INTEGER { ctx.unique("reconnect-wait-time", ctx.loc2pos(@1)); ElementPtr n(new IntElement($3, ctx.loc2pos(@3))); |