comparison src/event/ngx_event_quic.h @ 8585:02ee77f8d53d quic

QUIC: account packet header length in amplification limit. Header length calculation is adjusted to account real connection id lengths instead of worst case.
author Vladimir Homutov <vl@nginx.com>
date Thu, 15 Oct 2020 11:37:01 +0300
parents a0631204d88a
children 93be5658a250
comparison
equal deleted inserted replaced
8584:474706351c09 8585:02ee77f8d53d
52 #define NGX_QUIC_STREAM_SERVER_INITIATED 0x01 52 #define NGX_QUIC_STREAM_SERVER_INITIATED 0x01
53 #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02 53 #define NGX_QUIC_STREAM_UNIDIRECTIONAL 0x02
54 54
55 #define NGX_QUIC_STREAM_BUFSIZE 65536 55 #define NGX_QUIC_STREAM_BUFSIZE 65536
56 56
57 #define NGX_QUIC_SERVER_CID_LEN 20 57 #define NGX_QUIC_MAX_CID_LEN 20
58 #define NGX_QUIC_SERVER_CID_LEN NGX_QUIC_MAX_CID_LEN
58 59
59 #define NGX_QUIC_SR_TOKEN_LEN 16 60 #define NGX_QUIC_SR_TOKEN_LEN 16
60 61
61 62
62 typedef struct { 63 typedef struct {