size_t numn_iovec,
uint64_t datagram_id);
+/* transport:packet_received */
+void ossl_qlog_event_transport_packet_received(QLOG *qlog,
+ const QUIC_PKT_HDR *hdr,
+ QUIC_PN pn,
+ const OSSL_QTX_IOVEC *iovec,
+ size_t numn_iovec,
+ uint64_t datagram_id);
+
#endif
QLOG_EVENT(connectivity, connection_closed)
QLOG_EVENT(transport, parameters_set)
QLOG_EVENT(transport, packet_sent)
+QLOG_EVENT(transport, packet_received)
QLOG_EVENT(recovery, packet_lost)
QLOG_EVENT_END()
#endif
}
+
+void ossl_qlog_event_transport_packet_received(QLOG *qlog,
+ const QUIC_PKT_HDR *hdr,
+ QUIC_PN pn,
+ const OSSL_QTX_IOVEC *iovec,
+ size_t num_iovec,
+ uint64_t datagram_id)
+{
+#ifndef OPENSSL_NO_QLOG
+ QLOG_EVENT_BEGIN(qlog, transport, packet_received)
+ log_packet(qlog, hdr, pn, iovec, num_iovec, datagram_id);
+ QLOG_EVENT_END()
+#endif
+}
{
uint32_t enc_level;
int old_have_processed_any_pkt = ch->have_processed_any_pkt;
+ OSSL_QTX_IOVEC iovec;
assert(ch->qrx_pkt != NULL);
return;
}
+ iovec.buf = ch->qrx_pkt->hdr->data;
+ iovec.buf_len = ch->qrx_pkt->hdr->len;
+ ossl_qlog_event_transport_packet_received(ch_get_qlog(ch), ch->qrx_pkt->hdr,
+ ch->qrx_pkt->pn, &iovec, 1,
+ ch->qrx_pkt->datagram_id);
+
/* Handle incoming packet. */
switch (ch->qrx_pkt->hdr->type) {
case QUIC_PKT_TYPE_RETRY: