diff options
author | Florin Coras <fcoras@cisco.com> | 2024-06-10 13:12:40 -0700 |
---|---|---|
committer | Dave Barach <vpp@barachs.net> | 2024-06-14 23:27:49 +0000 |
commit | 1c30d2d8bc80240b7435d313e2eeb010715eea5e (patch) | |
tree | 36a004b12ae7c51ae45f57b8288ecb3b7b4284da /src/vnet/tcp/tcp_cli.c | |
parent | bee28afbb29992c4f332dcb319fbc3eacdc6e52b (diff) |
tcp: make syn-rcvd timeout configurable
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic89570315a5c3c00e0e89c5535929313916869eb
Diffstat (limited to 'src/vnet/tcp/tcp_cli.c')
-rw-r--r-- | src/vnet/tcp/tcp_cli.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/tcp/tcp_cli.c b/src/vnet/tcp/tcp_cli.c index b04c0bdc0cf..e26488342d2 100644 --- a/src/vnet/tcp/tcp_cli.c +++ b/src/vnet/tcp/tcp_cli.c @@ -1009,6 +1009,8 @@ tcp_config_fn (vlib_main_t * vm, unformat_input_t * input) tcp_cfg.alloc_err_timeout = tmp_time / TCP_TIMER_TICK; else if (unformat (input, "cleanup-time %u", &tmp_time)) tcp_cfg.cleanup_time = tmp_time / 1000.0; + else if (unformat (input, "syn-rcvd-time %u", &tmp_time)) + tcp_cfg.syn_rcvd_time = tmp_time * THZ; else return clib_error_return (0, "unknown input `%U'", format_unformat_error, input); |