]> git.ipfire.org Git - thirdparty/suricata.git/commit
decode: fix failure in layered tunnel 681/head
authorEric Leblond <eric@regit.org>
Wed, 4 Dec 2013 09:43:17 +0000 (10:43 +0100)
committerEric Leblond <eric@regit.org>
Wed, 4 Dec 2013 11:43:55 +0000 (12:43 +0100)
commitf76448c1e6d220169f68a3504d35fbe8fdcab257
treefa522f3e3d8d9c067e241f41ba321a15fab92906
parente9a4871077cfcdcc0da095da0c2843f63578ad16
decode: fix failure in layered tunnel

If we have multiple layer of tunnel, the decoding of initial
Packet will recurse in DecodeTunnel function called in
PacketTunnelPktSetup. If we are not setting the pseudo
packet root before calling DecodeTunnel (as done in previous
code), then the tunnel root will no be correct for the lower
layer packets. This result in an counter problem and a suricata
failure after some time.
src/decode.c
src/decode.h