]> git.ipfire.org Git - thirdparty/suricata.git/commit
proto detection: add limit for one sided sessions
authorVictor Julien <victor@inliniac.net>
Tue, 5 Nov 2013 13:41:45 +0000 (14:41 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 2 Dec 2013 14:50:04 +0000 (15:50 +0100)
commit7074ca373bb14acdecf2b7798650786c5f49e006
tree7e4c468a6db0b840949e1bd216fc2e9686ad3e21
parentabccbe13f352c244f0af3aebef0241fa3242c9d4
proto detection: add limit for one sided sessions

If a session only has data in one direction, like ftp data sessions,
protocol detection will only run in one direction. This led to a
situation where reassembly would hold all the segments as proto
detection was never flagged as complete.

This patch introduces a limit for protocol detection in this case.
If the limit is reached, detection will give up.
src/app-layer-detect-proto.c
src/app-layer-detect-proto.h
src/app-layer.c
src/stream-tcp.c
src/stream-tcp.h