Lines Matching refs:hdr
50 QUIC_PKT_HDR hdr; /* data/len are decrypted payload */ member
434 rxe->pkt.hdr = NULL; in qrx_recycle_rxe()
468 static uint32_t qrx_determine_enc_level(const QUIC_PKT_HDR *hdr) in qrx_determine_enc_level() argument
470 switch (hdr->type) { in qrx_determine_enc_level()
492 enc_level = qrx_determine_enc_level(&rxe->hdr); in rxe_determine_pn_space()
500 if (rxe->hdr.version != QUIC_VERSION_1 in qrx_validate_hdr_early()
501 && rxe->hdr.version != QUIC_VERSION_NONE) in qrx_validate_hdr_early()
505 if (rxe->hdr.type == QUIC_PKT_TYPE_0RTT) in qrx_validate_hdr_early()
509 if (first_dcid != NULL && !ossl_quic_pkt_type_can_share_dgram(rxe->hdr.type)) in qrx_validate_hdr_early()
519 &rxe->hdr.dst_conn_id)) in qrx_validate_hdr_early()
531 if (!ossl_quic_wire_decode_pkt_hdr_pn(rxe->hdr.pn, rxe->hdr.pn_len, in qrx_validate_hdr()
818 need_second_decode, 0, &rxe->hdr, &ptrs)) in qrx_process_pkt()
832 *first_dcid = rxe->hdr.dst_conn_id; in qrx_process_pkt()
846 if (!ossl_quic_pkt_type_is_encrypted(rxe->hdr.type)) { in qrx_process_pkt()
854 if ((rxe = qrx_reserve_rxe(&qrx->rx_free, rxe, rxe->hdr.len)) == NULL) in qrx_process_pkt()
862 memcpy(rxe_data(rxe), rxe->hdr.data, rxe->hdr.len); in qrx_process_pkt()
865 rxe->hdr.data = rxe_data(rxe); in qrx_process_pkt()
868 rxe->data_len = rxe->hdr.len; in qrx_process_pkt()
883 enc_level = qrx_determine_enc_level(&rxe->hdr); in qrx_process_pkt()
922 if (rxe->hdr.type == QUIC_PKT_TYPE_INITIAL) { in qrx_process_pkt()
923 const unsigned char *token = rxe->hdr.token; in qrx_process_pkt()
930 if (!qrx_relocate_buffer(qrx, &rxe, &i, &token, rxe->hdr.token_len)) in qrx_process_pkt()
933 rxe->hdr.token = token; in qrx_process_pkt()
954 0, 0, &rxe->hdr, NULL) != 1) in qrx_process_pkt()
964 eop - sop - rxe->hdr.len, qrx->msg_callback_ssl, in qrx_process_pkt()
972 aad_len = rxe->hdr.data - sop; in qrx_process_pkt()
975 if ((rxe = qrx_reserve_rxe(&qrx->rx_free, rxe, rxe->hdr.len + i)) == NULL) { in qrx_process_pkt()
999 if (!qrx_decrypt_pkt_body(qrx, dst, rxe->hdr.data, rxe->hdr.len, in qrx_process_pkt()
1001 rxe->hdr.key_phase, &rx_key_epoch)) in qrx_process_pkt()
1019 if (rxe->hdr.type == QUIC_PKT_TYPE_1RTT in qrx_process_pkt()
1020 && rxe->hdr.key_phase != (el->key_epoch & 1)) in qrx_process_pkt()
1044 rxe->hdr.data = dst; in qrx_process_pkt()
1045 rxe->hdr.len = dec_len; in qrx_process_pkt()
1229 rxe->pkt.hdr = &rxe->hdr; in ossl_qrx_read_pkt()