]> git.ipfire.org Git - thirdparty/suricata.git/commit
streaming: add blocklist
authorVictor Julien <victor@inliniac.net>
Wed, 20 Jan 2016 03:31:22 +0000 (22:31 -0500)
committerVictor Julien <victor@inliniac.net>
Thu, 20 Apr 2017 15:41:11 +0000 (17:41 +0200)
commitd789dc7e6de057d756b992c562b7f1583cc70c05
tree8ceb42ca727e62f0b067779b8a4a4de106debbbb
parent9e1470d81c79677b689a0fc4b570d20232953dad
streaming: add blocklist

Add list of 'blocks'. This list contains offsets and lengths to
continuous data blocks. This is useful for TCP tracking where we
can have data gaps.

The blocks don't contain any data themselves, instead they contain
lenght and offsets. This way no extra copying is needed.

On inserting new data, existing blocks are expanded instead of
having multiple neighbouring blocks.
src/util-streaming-buffer.c
src/util-streaming-buffer.h