Path: blob/main/crypto/openssl/include/internal/qlog_event_helpers.h
34879 views
/*1* Copyright 2023-2024 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#ifndef OSSL_QLOG_EVENT_HELPERS_H10# define OSSL_QLOG_EVENT_HELPERS_H1112# include <openssl/ssl.h>13# include "internal/qlog.h"14# include "internal/quic_types.h"15# include "internal/quic_channel.h"16# include "internal/quic_txpim.h"17# include "internal/quic_record_tx.h"18# include "internal/quic_wire_pkt.h"1920/* connectivity:connection_started */21void ossl_qlog_event_connectivity_connection_started(QLOG *qlog,22const QUIC_CONN_ID *init_dcid);2324/* connectivity:connection_state_updated */25void ossl_qlog_event_connectivity_connection_state_updated(QLOG *qlog,26uint32_t old_state,27uint32_t new_state,28int handshake_complete,29int handshake_confirmed);3031/* connectivity:connection_closed */32void ossl_qlog_event_connectivity_connection_closed(QLOG *qlog,33const QUIC_TERMINATE_CAUSE *tcause);3435/* recovery:packet_lost */36void ossl_qlog_event_recovery_packet_lost(QLOG *qlog,37const QUIC_TXPIM_PKT *tpkt);3839/* transport:packet_sent */40void ossl_qlog_event_transport_packet_sent(QLOG *qlog,41const QUIC_PKT_HDR *hdr,42QUIC_PN pn,43const OSSL_QTX_IOVEC *iovec,44size_t numn_iovec,45uint64_t datagram_id);4647/* transport:packet_received */48void ossl_qlog_event_transport_packet_received(QLOG *qlog,49const QUIC_PKT_HDR *hdr,50QUIC_PN pn,51const OSSL_QTX_IOVEC *iovec,52size_t numn_iovec,53uint64_t datagram_id);5455#endif565758