From 3f03ca95b64f2d2b4a706242156bce1c65729b13 Mon Sep 17 00:00:00 2001 From: fanxb Date: Tue, 15 Feb 2022 14:19:04 +0800 Subject: quic: fix quic_config_fn cfg cmd parse error Type:fix Signed-off-by: fanxb Change-Id: I244f6ddd0a34e82ababd375646d3bb194602b5d5 --- src/plugins/quic/quic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index a0bacb6237d..3655f9538b8 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -2963,7 +2963,7 @@ quic_config_fn (vlib_main_t * vm, unformat_input_t * input) while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT) { - if (unformat (input, "fifo-size %U", unformat_memory_size, &tmp)) + if (unformat (line_input, "fifo-size %U", unformat_memory_size, &tmp)) { if (tmp >= 0x100000000ULL) { @@ -2974,9 +2974,9 @@ quic_config_fn (vlib_main_t * vm, unformat_input_t * input) } qm->udp_fifo_size = tmp; } - else if (unformat (input, "conn-timeout %u", &i)) + else if (unformat (line_input, "conn-timeout %u", &i)) qm->connection_timeout = i; - else if (unformat (input, "fifo-prealloc %u", &i)) + else if (unformat (line_input, "fifo-prealloc %u", &i)) qm->udp_fifo_prealloc = i; else { -- cgit 1.2.3-korg