mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
[FEATURE] Add support for Q043
This commit is contained in:
parent
d0a7c0c18f
commit
c95974e91b
5 changed files with 25 additions and 8 deletions
10
CHANGELOG
10
CHANGELOG
|
@ -1,3 +1,13 @@
|
|||
2018-05-09
|
||||
|
||||
- [FEATURE] Add support for Q043.
|
||||
- Q041 and Q042 are marked deprecated. They are still fully usable,
|
||||
but not enabled by default.
|
||||
- Fix typo in debug message.
|
||||
- Fix code indentation.
|
||||
- Add /* fallthru */ comment to stop newer gcc from complaining.
|
||||
- Logger: fix compilation of optimized Windows build.
|
||||
|
||||
2018-05-04
|
||||
|
||||
- [FEATURE] Add support for Q042.
|
||||
|
|
|
@ -81,16 +81,21 @@ enum lsquic_version
|
|||
*/
|
||||
LSQVER_042,
|
||||
|
||||
/**
|
||||
* Q043. Support for processing PRIORITY frames. Since this library
|
||||
* has supported PRIORITY frames from the beginning, this version is
|
||||
* exactly the same as LSQVER_042.
|
||||
*/
|
||||
LSQVER_043,
|
||||
|
||||
N_LSQVER
|
||||
};
|
||||
|
||||
/**
|
||||
* We currently support versions 35, 37, 38, 39, 41, and 42.
|
||||
* We currently support versions 35, 37, 38, 39, 41, 42, and 43.
|
||||
* @see lsquic_version
|
||||
*/
|
||||
#define LSQUIC_SUPPORTED_VERSIONS ((1 << LSQVER_035) | (1 << LSQVER_037) | \
|
||||
(1 << LSQVER_038) | (1 << LSQVER_039) | (1 << LSQVER_041) | \
|
||||
(1 << LSQVER_042))
|
||||
#define LSQUIC_SUPPORTED_VERSIONS ((1 << N_LSQVER) - 1)
|
||||
|
||||
#define LSQUIC_EXPERIMENTAL_VERSIONS 0
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue