in src/transport/xqc_packet_parser.c [337:354]
void xqc_packet_update_reserved_bits(xqc_packet_out_t *packet_out)
{
if (packet_out->po_pkt.pkt_type == XQC_PTYPE_SHORT_HEADER
&& packet_out->po_flag & XQC_POF_REINJECTED_REPLICA)
{
unsigned char *dst_buf = packet_out->po_buf;
/* reserved bits 10 */
dst_buf[0] |= (1 << 4);
}
if (packet_out->po_pkt.pkt_type == XQC_PTYPE_0RTT
&& packet_out->po_flag & XQC_POF_REINJECTED_REPLICA)
{
/* reserved bits 10 */
unsigned char *dst_buf = packet_out->po_buf;
dst_buf[0] |= (1 << 3);
}
}