]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Modify qc_try_rm_hp() traces
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 7 Apr 2023 15:58:49 +0000 (17:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 11 Apr 2023 08:47:19 +0000 (10:47 +0200)
Dump at proto level the packet information when its header protection was removed.
Remove no more use qpkt_trace variable.

Must be backported to 2.7 and 2.6.

src/quic_conn.c

index e76355c9beb457cb6129c7a6e5b3aa7839b7bcd9..1a9edc698f1c2c6348b22f24b64c917a99a2dead 100644 (file)
@@ -5932,9 +5932,7 @@ static inline int qc_try_rm_hp(struct quic_conn *qc,
        enum quic_tls_enc_level tel;
        struct quic_enc_level *qel;
        /* Only for traces. */
-       struct quic_rx_packet *qpkt_trace;
 
-       qpkt_trace = NULL;
        TRACE_ENTER(QUIC_EV_CONN_TRMHP, qc);
        BUG_ON(!pkt->pn_offset);
 
@@ -5968,7 +5966,7 @@ static inline int qc_try_rm_hp(struct quic_conn *qc,
                        goto out;
                }
 
-               qpkt_trace = pkt;
+               TRACE_PROTO("RX hp removed", QUIC_EV_CONN_TRMHP, qc, pkt);
        }
        else {
                if (qel->tls_ctx.flags & QUIC_FL_TLS_SECRETS_DCD) {
@@ -5993,7 +5991,7 @@ static inline int qc_try_rm_hp(struct quic_conn *qc,
        
        ret = 1;
  out:
-       TRACE_LEAVE(QUIC_EV_CONN_TRMHP, qc, qpkt_trace);
+       TRACE_LEAVE(QUIC_EV_CONN_TRMHP, qc);
        return ret;
 }