Mercurial > hg > nginx-quic
comparison src/event/ngx_event_quic_protection.c @ 7910:125cbfa77013 quic
Renamed max_packet_size to max_udp_payload_size, from draft-28.
No functional changes.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 29 May 2020 12:56:08 +0300 |
parents | df18ae7161b8 |
children | 3de1b7399650 |
comparison
equal
deleted
inserted
replaced
7909:49a98760afd2 | 7910:125cbfa77013 |
---|---|
1113 ngx_quic_hexdump(pkt->log, "quic ad", ad.data, ad.len); | 1113 ngx_quic_hexdump(pkt->log, "quic ad", ad.data, ad.len); |
1114 #endif | 1114 #endif |
1115 | 1115 |
1116 pkt->payload.len = in.len - EVP_GCM_TLS_TAG_LEN; | 1116 pkt->payload.len = in.len - EVP_GCM_TLS_TAG_LEN; |
1117 | 1117 |
1118 if (NGX_QUIC_DEFAULT_MAX_PACKET_SIZE - ad.len < pkt->payload.len) { | 1118 if (NGX_QUIC_MAX_UDP_PAYLOAD_SIZE - ad.len < pkt->payload.len) { |
1119 return NGX_ERROR; | 1119 return NGX_ERROR; |
1120 } | 1120 } |
1121 | 1121 |
1122 pkt->payload.data = pkt->plaintext + ad.len; | 1122 pkt->payload.data = pkt->plaintext + ad.len; |
1123 | 1123 |