summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-04-07 04:14:45 +0000
committerDave Barach <openvpp@barachs.net>2020-04-07 14:47:13 +0000
commite10d167bfe8aec76cee138cbe33166ba89423c8c (patch)
tree0cf625128da4dc61e0ffd6310f0a144330e83c89 /src/vnet
parentab57edb8d27ddf0fb30cd0f4ae5290c06f301599 (diff)
tcp: fix conf mtu parsing
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I4f0628b0484e32facbeb163993cc25d637167936
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/tcp/tcp_cli.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/tcp/tcp_cli.c b/src/vnet/tcp/tcp_cli.c
index a28e2c83659..02cbdde7222 100644
--- a/src/vnet/tcp/tcp_cli.c
+++ b/src/vnet/tcp/tcp_cli.c
@@ -943,7 +943,7 @@ unformat_tcp_cc_algo_cfg (unformat_input_t * input, va_list * va)
static clib_error_t *
tcp_config_fn (vlib_main_t * vm, unformat_input_t * input)
{
- u32 cwnd_multiplier, tmp_time;
+ u32 cwnd_multiplier, tmp_time, mtu;
uword memory_size;
while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
@@ -979,8 +979,8 @@ tcp_config_fn (vlib_main_t * vm, unformat_input_t * input)
}
tcp_cfg.min_rx_fifo = memory_size;
}
- else if (unformat (input, "mtu %u", &tcp_cfg.default_mtu))
- ;
+ else if (unformat (input, "mtu %u", &mtu))
+ tcp_cfg.default_mtu = mtu;
else if (unformat (input, "rwnd-min-update-ack %d",
&tcp_cfg.rwnd_min_update_ack))
;