MINOR: quic: Dump version_information transport parameter
Implement quic_tp_version_info_dump() to dump such a transport parameter (only remote).
Call it from quic_transport_params_dump() which dump all the transport parameters.
Can be backported to 2.6 as it's useful for debugging.
diff --git a/src/quic_tp.c b/src/quic_tp.c
index f7f8d7d..f83ed86 100644
--- a/src/quic_tp.c
+++ b/src/quic_tp.c
@@ -191,6 +191,7 @@
/* TODO: not supported */
return 0;
+ tp->nb_others = (end - (const unsigned char *)tp->others) / sizeof *tp->others;
for (ver = tp->others; ver < (const uint32_t *)end; ver++) {
if (!tp->negotiated_version) {
int i;
diff --git a/src/xprt_quic.c b/src/xprt_quic.c
index 7c31434..5fae59b 100644
--- a/src/xprt_quic.c
+++ b/src/xprt_quic.c
@@ -264,7 +264,7 @@
if (mask & QUIC_EV_TRANSP_PARAMS) {
const struct quic_transport_params *p = a2;
- quic_transport_params_dump(&trace_buf, p);
+ quic_transport_params_dump(&trace_buf, qc, p);
}
if (mask & QUIC_EV_CONN_ADDDATA) {