summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_connection.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2023-11-29 10:58:21 +0400
committerRoman Arutyunyan <arut@nginx.com>2023-11-29 10:58:21 +0400
commitc1efb3a725c189dc0f011753561bf34ff650d773 (patch)
tree5e81c6bf0bc6ce798e7289fb4748cd333162861d /src/event/quic/ngx_event_quic_connection.h
parent209e8bc0c04f852605919ed766d25ee777f4b52b (diff)
downloadnginx-c1efb3a725c189dc0f011753561bf34ff650d773.tar.gz
nginx-c1efb3a725c189dc0f011753561bf34ff650d773.tar.bz2
QUIC: path revalidation after expansion failure.
As per RFC 9000, Section 8.2.1: When an endpoint is unable to expand the datagram size to 1200 bytes due to the anti-amplification limit, the path MTU will not be validated. To ensure that the path MTU is large enough, the endpoint MUST perform a second path validation by sending a PATH_CHALLENGE frame in a datagram of at least 1200 bytes.
Diffstat (limited to 'src/event/quic/ngx_event_quic_connection.h')
-rw-r--r--src/event/quic/ngx_event_quic_connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_connection.h b/src/event/quic/ngx_event_quic_connection.h
index abd0ebe6c..4ff0eae4a 100644
--- a/src/event/quic/ngx_event_quic_connection.h
+++ b/src/event/quic/ngx_event_quic_connection.h
@@ -111,7 +111,8 @@ struct ngx_quic_path_s {
uint64_t mtu_pnum[NGX_QUIC_PATH_RETRIES];
ngx_str_t addr_text;
u_char text[NGX_SOCKADDR_STRLEN];
- ngx_uint_t validated; /* unsigned validated:1; */
+ unsigned validated:1;
+ unsigned mtu_unvalidated:1;
};