Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.c @ 8734:c61fcdc1b8e3 quic
UDP: extended datagram context.
Sometimes it is required to process datagram properties at higher level (i.e.
QUIC is interested in source address which may change and IP options). The
patch adds ngx_udp_dgram_t structure used to pass packet-related information
in c->udp.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 02 Apr 2021 18:58:19 +0300 |
parents | 90ae21799f67 |
children | 9ce6d80df113 |
comparison
equal
deleted
inserted
replaced
8733:385d511b5064 | 8734:c61fcdc1b8e3 |
---|---|
1918 "quic dropping packet from new address"); | 1918 "quic dropping packet from new address"); |
1919 return; | 1919 return; |
1920 } | 1920 } |
1921 } | 1921 } |
1922 | 1922 |
1923 b = c->udp->buffer; | 1923 b = c->udp->dgram->buffer; |
1924 | 1924 |
1925 qc->received += (b->last - b->pos); | 1925 qc->received += (b->last - b->pos); |
1926 | 1926 |
1927 rc = ngx_quic_input(c, b, NULL); | 1927 rc = ngx_quic_input(c, b, NULL); |
1928 | 1928 |