Drop support for versions Q037, Q038, and Q042

This commit is contained in:
Dmitri Tikhonov 2018-05-09 14:01:46 -04:00
parent d5eb659e46
commit 052a1c28ad
24 changed files with 87 additions and 88 deletions

View file

@ -868,7 +868,7 @@ new_stream_ext (struct full_conn *conn, uint32_t stream_id, int if_idx,
{
struct lsquic_stream *stream;
if (conn->fc_conn.cn_version >= LSQVER_042)
if (conn->fc_conn.cn_version >= LSQVER_043)
stream_ctor_flags |= SCF_ALLOW_OVERLAP;
stream = lsquic_stream_new_ext(stream_id, &conn->fc_pub,
@ -1011,7 +1011,7 @@ static unsigned
process_padding_frame (struct full_conn *conn, lsquic_packet_in_t *packet_in,
const unsigned char *p, size_t len)
{
if (conn->fc_conn.cn_version >= LSQVER_038)
if (conn->fc_conn.cn_version >= LSQVER_039)
return (unsigned) count_zero_bytes(p, len);
if (lsquic_is_zero(p, len))
{
@ -1901,7 +1901,7 @@ process_incoming_packet (struct full_conn *conn, lsquic_packet_in_t *packet_in)
conn->fc_ver_neg.vn_tag = NULL;
conn->fc_conn.cn_version = conn->fc_ver_neg.vn_ver;
conn->fc_conn.cn_flags |= LSCONN_VER_SET;
if (conn->fc_conn.cn_version >= LSQVER_037)
if (conn->fc_conn.cn_version >= LSQVER_039)
{
assert(!(conn->fc_flags & FC_NSTP)); /* This bit off at start */
if (conn->fc_settings->es_support_nstp)

View file

@ -1435,7 +1435,7 @@ verify_packet_hash (const lsquic_enc_session_t *enc_session,
if (data_len < HS_PKT_HASH_LENGTH)
return -1;
if (version >= LSQVER_037)
if (version >= LSQVER_039)
{
hash = fnv1a_128_3(buf, *header_len,
buf + *header_len + HS_PKT_HASH_LENGTH,
@ -1600,7 +1600,7 @@ lsquic_enc_session_encrypt (lsquic_enc_session_t *enc_session,
if (max_out_len < *out_len)
return -1;
if (version >= LSQVER_037)
if (version >= LSQVER_039)
{
hash = fnv1a_128_3(header, header_len, data, data_len,
(unsigned char *) "Client", 6);

View file

@ -164,8 +164,7 @@ extern const struct parse_funcs lsquic_parse_funcs_gquic_Q039;
extern const struct parse_funcs lsquic_parse_funcs_gquic_Q041;
#define select_pf_by_ver(ver) ( \
((1 << (ver)) & ((1 << LSQVER_035) | \
(1 << LSQVER_037) | (1 << LSQVER_038))) \
((1 << (ver)) & (1 << LSQVER_035)) \
? &lsquic_parse_funcs_gquic_le : \
((1 << (ver)) & (1 << LSQVER_041)) \
? &lsquic_parse_funcs_gquic_Q041 \

View file

@ -9,11 +9,8 @@
static const unsigned char version_tags[N_LSQVER][4] =
{
[LSQVER_035] = { 'Q', '0', '3', '5', },
[LSQVER_037] = { 'Q', '0', '3', '7', },
[LSQVER_038] = { 'Q', '0', '3', '8', },
[LSQVER_039] = { 'Q', '0', '3', '9', },
[LSQVER_041] = { 'Q', '0', '4', '1', },
[LSQVER_042] = { 'Q', '0', '4', '2', },
[LSQVER_043] = { 'Q', '0', '4', '3', },
};
@ -60,11 +57,8 @@ lsquic_str2ver (const char *str, size_t len)
const char *const lsquic_ver2str[N_LSQVER] = {
[LSQVER_035] = "Q035",
[LSQVER_037] = "Q037",
[LSQVER_038] = "Q038",
[LSQVER_039] = "Q039",
[LSQVER_041] = "Q041",
[LSQVER_042] = "Q042",
[LSQVER_043] = "Q043",
};