summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_connection.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2021-12-13 09:48:33 +0300
committerVladimir Homutov <vl@nginx.com>2021-12-13 09:48:33 +0300
commit10fd8be86d657839fbc6218891bfe9046ab5b592 (patch)
treee791bd99093c559ca1dcd3a7e93510cf175dadad /src/event/quic/ngx_event_quic_connection.h
parenta31745499bcf35fac236bdc5f3d0d0a6d679b4e0 (diff)
downloadnginx-10fd8be86d657839fbc6218891bfe9046ab5b592.tar.gz
nginx-10fd8be86d657839fbc6218891bfe9046ab5b592.tar.bz2
QUIC: decoupled path state and limitation status.
The path validation status and anti-amplification limit status is actually two different variables. It is possible that validating path should not be limited (for example, when re-validating former path).
Diffstat (limited to 'src/event/quic/ngx_event_quic_connection.h')
-rw-r--r--src/event/quic/ngx_event_quic_connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_connection.h b/src/event/quic/ngx_event_quic_connection.h
index 7b6afb123..73268ea0a 100644
--- a/src/event/quic/ngx_event_quic_connection.h
+++ b/src/event/quic/ngx_event_quic_connection.h
@@ -85,6 +85,7 @@ struct ngx_quic_path_s {
struct sockaddr *sockaddr;
socklen_t socklen;
ngx_uint_t state;
+ ngx_uint_t limited; /* unsigned limited:1; */
ngx_msec_t expires;
ngx_msec_t last_seen;
ngx_uint_t tries;