From a3f76875f434b42dc7f24ab6fa3685e13de8d910 Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Mon, 24 Nov 2025 14:24:23 +0100 Subject: [PATCH] MINOR: quic: mark backend conns on show quic Add an extra "(B)" marker when displaying a backend connection during a "show quic". This is useful to differentiate them with the frontend side when displaying all connections. --- src/quic_cli.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/quic_cli.c b/src/quic_cli.c index e16067f9f..e303acb0d 100644 --- a/src/quic_cli.c +++ b/src/quic_cli.c @@ -193,7 +193,8 @@ static void dump_quic_oneline(struct show_quic_ctx *ctx, struct quic_conn *qc) unsigned char cid_len; struct listener *l = qc->li; - ret = chunk_appendf(&trash, "%p[%02u]/%-.12s ", qc, ctx->thr, + ret = chunk_appendf(&trash, "%p[%02u]%s/%-.12s ", qc, ctx->thr, + qc_is_back(qc) ? "(B)" : "", l ? l->bind_conf->frontend->id : qc->conn ? __objt_server(qc->conn->target)->id : "UNKNOWN"); @@ -288,7 +289,8 @@ static void dump_quic_full(struct show_quic_ctx *ctx, struct quic_conn *qc) addnl = 0; /* CIDs */ - chunk_appendf(&trash, "* %p[%02u]: scid=", qc, ctx->thr); + chunk_appendf(&trash, "* %p[%02u]%s: scid=", qc, ctx->thr, + qc_is_back(qc) ? "(B)" : ""); for (cid_len = 0; cid_len < qc->scid.len; ++cid_len) chunk_appendf(&trash, "%02x", qc->scid.data[cid_len]); while (cid_len++ < 20)