From: Amaury Denoyelle Date: Mon, 24 Nov 2025 13:24:23 +0000 (+0100) Subject: MINOR: quic: mark backend conns on show quic X-Git-Tag: v3.3.0~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3f76875f434b42dc7f24ab6fa3685e13de8d910;p=thirdparty%2Fhaproxy.git 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. --- 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)