]> git.ipfire.org Git - thirdparty/suricata.git/commit
stream: special handling for RST data
authorVictor Julien <vjulien@oisf.net>
Tue, 1 Aug 2023 06:44:53 +0000 (08:44 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 1 Aug 2023 17:43:04 +0000 (19:43 +0200)
commitb63374bf5f8c85c42056ad3c4cce12bce3d1a6bd
treea1e24357c0220b5a1801c9f414bab86eb678083e
parent9ba55b8a282eca795c21ff53dd54937492bb8cf1
stream: special handling for RST data

Data on RST packets is not invalid, but also shouldn't be used
in reassembly.

RFC 1122:

  4.2.2.12  RST Segment: RFC-793 Section 3.4

    A TCP SHOULD allow a received RST segment to include data.

    DISCUSSION
        It has been suggested that a RST segment could contain
        ASCII text that encoded and explained the cause of the
        RST.  No standard has yet been established for such
        data.

RST data will be presented to the detection engine per packet,
but will not be part of stream reassembly.

Bug: #6244.
src/stream-tcp-reassemble.c