aboutsummaryrefslogtreecommitdiff
path: root/src/http/v3/ngx_http_v3.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2021-12-06 13:02:36 +0300
committerRoman Arutyunyan <arut@nginx.com>2021-12-06 13:02:36 +0300
commit731915a0c5e90b79d3cca1a4b0a3c33e1f77631c (patch)
tree5282f6ce9982b7dc159b98a04baeedd03a7cb4fc /src/http/v3/ngx_http_v3.h
parentea55dbccb248629628baad2b85d7634c82b613ec (diff)
downloadnginx-731915a0c5e90b79d3cca1a4b0a3c33e1f77631c.tar.gz
nginx-731915a0c5e90b79d3cca1a4b0a3c33e1f77631c.zip
HTTP/3: merged ngx_http_quic_module into ngx_http_v3_module.
Diffstat (limited to 'src/http/v3/ngx_http_v3.h')
-rw-r--r--src/http/v3/ngx_http_v3.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/http/v3/ngx_http_v3.h b/src/http/v3/ngx_http_v3.h
index 758cbd1af..bee073e1d 100644
--- a/src/http/v3/ngx_http_v3.h
+++ b/src/http/v3/ngx_http_v3.h
@@ -22,6 +22,9 @@
#define NGX_HTTP_V3_ALPN_PROTO "\x02h3"
#define NGX_HTTP_V3_ALPN_DRAFT_FMT "\x05h3-%02uD"
+#define NGX_HTTP_QUIC_ALPN_PROTO "\x0Ahq-interop"
+#define NGX_HTTP_QUIC_ALPN_DRAFT_FMT "\x05hq-%02uD"
+
#define NGX_HTTP_V3_VARLEN_INT_LEN 4
#define NGX_HTTP_V3_PREFIX_INT_LEN 11
@@ -74,6 +77,9 @@
#define NGX_HTTP_V3_ERR_DECODER_STREAM_ERROR 0x202
+#define ngx_http_quic_get_connection(c) \
+ ((ngx_http_connection_t *) (c)->quic->parent->data)
+
#define ngx_http_v3_get_session(c) ngx_http_quic_get_connection(c)->v3_session
#define ngx_http_v3_get_module_loc_conf(c, module) \
@@ -90,15 +96,13 @@
#define ngx_http_v3_shutdown_connection(c, code, reason) \
ngx_quic_shutdown_connection(c->quic->parent, code, reason)
-#define ngx_http_v3_connection(c) \
- ((c)->quic ? ngx_http_quic_get_connection(c)->addr_conf->http3 : 0)
-
typedef struct {
size_t max_table_capacity;
ngx_uint_t max_blocked_streams;
ngx_uint_t max_concurrent_pushes;
ngx_uint_t max_uni_streams;
+ ngx_quic_conf_t quic;
} ngx_http_v3_srv_conf_t;