[FEATURE] Add support for Q043

This commit is contained in:
Dmitri Tikhonov 2018-05-09 08:57:43 -04:00
parent d0a7c0c18f
commit c95974e91b
5 changed files with 25 additions and 8 deletions

View file

@ -2275,7 +2275,7 @@ packetize_standalone_stream_reset (struct full_conn *conn, uint32_t stream_id)
}
lsquic_send_ctl_incr_pack_sz(&conn->fc_send_ctl, packet_out, sz);
packet_out->po_frame_types |= 1 << QUIC_FRAME_RST_STREAM;
LSQ_DEBUG("generated standaloen RST_STREAM frame for stream %"PRIu32,
LSQ_DEBUG("generated standalone RST_STREAM frame for stream %"PRIu32,
stream_id);
return 1;
}

View file

@ -167,9 +167,9 @@ extern const struct parse_funcs lsquic_parse_funcs_gquic_Q041;
((1 << (ver)) & ((1 << LSQVER_035) | \
(1 << LSQVER_037) | (1 << LSQVER_038))) \
? &lsquic_parse_funcs_gquic_le : \
((1 << (ver)) & ((1 << LSQVER_039) | (1 << LSQVER_042))) \
? &lsquic_parse_funcs_gquic_Q039 \
: &lsquic_parse_funcs_gquic_Q041)
((1 << (ver)) & (1 << LSQVER_041)) \
? &lsquic_parse_funcs_gquic_Q041 \
: &lsquic_parse_funcs_gquic_Q039)
/* This function is QUIC-version independent */
int

View file

@ -14,6 +14,7 @@ static const unsigned char version_tags[N_LSQVER][4] =
[LSQVER_039] = { 'Q', '0', '3', '9', },
[LSQVER_041] = { 'Q', '0', '4', '1', },
[LSQVER_042] = { 'Q', '0', '4', '2', },
[LSQVER_043] = { 'Q', '0', '4', '3', },
};
@ -64,6 +65,7 @@ const char *const lsquic_ver2str[N_LSQVER] = {
[LSQVER_039] = "Q039",
[LSQVER_041] = "Q041",
[LSQVER_042] = "Q042",
[LSQVER_043] = "Q043",
};