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.
This commit is contained in:
Amaury Denoyelle 2025-11-24 14:24:23 +01:00
parent e56fdf6320
commit a3f76875f4

View File

@ -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)