mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Release 4.0.1
This commit is contained in:
parent
3586b1e691
commit
2fb39e3567
17 changed files with 74 additions and 83 deletions
|
@ -27,7 +27,7 @@ extern "C" {
|
|||
|
||||
#define LSQUIC_MAJOR_VERSION 4
|
||||
#define LSQUIC_MINOR_VERSION 0
|
||||
#define LSQUIC_PATCH_VERSION 0
|
||||
#define LSQUIC_PATCH_VERSION 1
|
||||
|
||||
/**
|
||||
* Engine flags:
|
||||
|
|
|
@ -18,18 +18,15 @@
|
|||
*/
|
||||
typedef struct lsquic_cid
|
||||
{
|
||||
uint_fast8_t len;
|
||||
union {
|
||||
uint8_t buf[MAX_CID_LEN];
|
||||
uint64_t id;
|
||||
} u_cid;
|
||||
#define idbuf u_cid.buf
|
||||
}
|
||||
uint8_t buf[MAX_CID_LEN];
|
||||
#define idbuf buf
|
||||
uint_fast8_t len;
|
||||
} __attribute__((__aligned__(8)))
|
||||
lsquic_cid_t;
|
||||
|
||||
|
||||
#define LSQUIC_CIDS_EQ(a, b) ((a)->len == 8 ? \
|
||||
(b)->len == 8 && (a)->u_cid.id == (b)->u_cid.id : \
|
||||
(b)->len == 8 && *(uint64_t *)((a)->buf) == *(uint64_t *)((b)->buf) : \
|
||||
(a)->len == (b)->len && 0 == memcmp((a)->idbuf, (b)->idbuf, (a)->len))
|
||||
|
||||
/** Stream ID */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue