QLOG: Wiring: QUIC TXPIM: Record the packet type
authorHugo Landau <hlandau@openssl.org>
Fri, 8 Sep 2023 12:31:36 +0000 (13:31 +0100)
committerHugo Landau <hlandau@openssl.org>
Fri, 2 Feb 2024 11:49:34 +0000 (11:49 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)

include/internal/quic_txpim.h
ssl/quic/quic_txp.c

index efe1ca6302a99810995a223afeb69cd7da39a429..7219f21ef65cc8de6a5d1564fc9f199652781a7f 100644 (file)
@@ -33,6 +33,9 @@ typedef struct quic_txpim_pkt_st {
     /* Reserved for FIFD use. */
     QUIC_FIFD          *fifd;
 
+    /* QUIC_PKT_TYPE value. For diagnostic use only. */
+    unsigned char       pkt_type;
+
     /* Regenerate-strategy frames. */
     unsigned int        had_handshake_done_frame    : 1;
     unsigned int        had_max_data_frame          : 1;
index b18f8c0e38e344f0b7fb737735fa5dca4eb3ecb7..c23ec346681ae60ac1bec21215b878a263697b59 100644 (file)
@@ -2812,6 +2812,7 @@ static int txp_generate_for_el(OSSL_QUIC_TX_PACKETISER *txp,
     tpkt->ackm_pkt.is_pto_probe     = 0;
     tpkt->ackm_pkt.is_mtu_probe     = 0;
     tpkt->ackm_pkt.time             = txp->args.now(txp->args.now_arg);
+    tpkt->pkt_type                  = pkt->phdr.type;
 
     /* Done. */
     return rc;