]> git.ipfire.org Git - thirdparty/suricata.git/commit
app-layer: notify parsers of gaps if enabled
authorJason Ish <ish@unx.ca>
Mon, 8 May 2017 19:43:42 +0000 (13:43 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 3 Jun 2017 08:45:35 +0000 (10:45 +0200)
commitc862bbdc4b3a5ce1287ab0bc6d35c94a0a8e5756
tree74cbe481107fdefcf2c971316f86ca833d4db61b
parentdfff228f75d8b657cb75044b421c35a5a5937f38
app-layer: notify parsers of gaps if enabled

A parser can now set a flag that will tell the application
layer that it is capable of handling gaps. If enabled, and a
gap occurs, the app-layer needs to be prepared to accept
input that is NULL with a length, where the length is the
number of bytes lost. It is up to the app-layer to
determine if it can sync up with the input data again.
src/app-layer-parser.c
src/app-layer-parser.h
src/stream-tcp-reassemble.c