From ba9f905da978afafb81ceb4277af2a886e6ca616 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Fri, 23 Feb 2024 17:28:49 +0100 Subject: [PATCH] BUG/MINOR: quic: fix output of show quic Output of 'show quic' is messed up since the introduction of reordered packets counter in the following commit. The new counter is mixed up with the first stream line. This is due to the wrong placement of the newline delimiter. 167e38e0e0296e899aa894d2f3db5ba2a0c68cb5 MINOR: quic: Add a counter for reordered packets This should be backported up to 2.6. --- src/quic_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quic_cli.c b/src/quic_cli.c index 56301fa84..f237a1fd0 100644 --- a/src/quic_cli.c +++ b/src/quic_cli.c @@ -204,7 +204,7 @@ static void dump_quic_full(struct show_quic_ctx *ctx, struct quic_conn *qc) } chunk_appendf(&trash, " srtt=%-4u rttvar=%-4u rttmin=%-4u ptoc=%-4u cwnd=%-6llu" - " mcwnd=%-6llu sentpkts=%-6llu lostpkts=%-6llu\n reorderedpkts=%-6llu", + " mcwnd=%-6llu sentpkts=%-6llu lostpkts=%-6llu reorderedpkts=%-6llu\n", qc->path->loss.srtt, qc->path->loss.rtt_var, qc->path->loss.rtt_min, qc->path->loss.pto_count, (ullong)qc->path->cwnd, (ullong)qc->path->mcwnd, (ullong)qc->cntrs.sent_pkt, (ullong)qc->path->loss.nb_lost_pkt, (ullong)qc->path->loss.nb_reordered_pkt);