]> git.ipfire.org Git - thirdparty/suricata.git/commit
quic: handle fragmented hello over multiple packets
authorPhilippe Antoine <pantoine@oisf.net>
Mon, 17 Feb 2025 10:13:20 +0000 (11:13 +0100)
committerPhilippe Antoine <pantoine@oisf.net>
Sun, 23 Feb 2025 20:23:55 +0000 (21:23 +0100)
commit31d57ef7fc58bef817a02335a0e4bba4a81f6e91
tree7850c1812216734377573899036aefe22620379f
parentce90ff187ebf2634f1d00942628d3bf5305c970c
quic: handle fragmented hello over multiple packets

Ticket: 7556

To do so, we need to add 2 buffers (one for each direction)
to the QuicState structure, so that on parsing the second packet
with hello/crypto fragment, we still have the data of the first
hello/crypto fragment.

Use a hardcoded limit so that these buffers cannot grow indefinitely
and set an event when reaching the limit

(cherry picked from commit f295cc059d0fb9666ff48b5156235f1aa611d010)
rules/quic-events.rules
rust/src/quic/frames.rs
rust/src/quic/parser.rs
rust/src/quic/quic.rs