Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic.h @ 7913:8b4a0a752723 quic
Made NGX_QUIC_DRAFT_VERSION tunable from configure parameters.
Now it can be switched using --with-cc-opt='-DNGX_QUIC_DRAFT_VERSION=28'.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 29 May 2020 15:07:46 +0300 |
parents | 6633f17044eb |
children | 391d06a51bc0 |
comparison
equal
deleted
inserted
replaced
7912:6633f17044eb | 7913:8b4a0a752723 |
---|---|
11 #include <ngx_config.h> | 11 #include <ngx_config.h> |
12 #include <ngx_core.h> | 12 #include <ngx_core.h> |
13 | 13 |
14 | 14 |
15 /* Supported drafts: 27, 28 */ | 15 /* Supported drafts: 27, 28 */ |
16 #ifndef NGX_QUIC_DRAFT_VERSION | |
16 #define NGX_QUIC_DRAFT_VERSION 27 | 17 #define NGX_QUIC_DRAFT_VERSION 27 |
18 #endif | |
17 #define NGX_QUIC_VERSION (0xff000000 + NGX_QUIC_DRAFT_VERSION) | 19 #define NGX_QUIC_VERSION (0xff000000 + NGX_QUIC_DRAFT_VERSION) |
18 | 20 |
19 #define NGX_QUIC_MAX_SHORT_HEADER 25 /* 1 flags + 20 dcid + 4 pn */ | 21 #define NGX_QUIC_MAX_SHORT_HEADER 25 /* 1 flags + 20 dcid + 4 pn */ |
20 #define NGX_QUIC_MAX_LONG_HEADER 56 | 22 #define NGX_QUIC_MAX_LONG_HEADER 56 |
21 /* 1 flags + 4 version + 2 x (1 + 20) s/dcid + 4 pn + 4 len + token len */ | 23 /* 1 flags + 4 version + 2 x (1 + 20) s/dcid + 4 pn + 4 len + token len */ |