]> git.ipfire.org Git - thirdparty/suricata.git/commit
decode-events: counters for decode events errors 1921/head
authorMaurizio Abba <mabba@lastline.com>
Thu, 10 Mar 2016 13:58:21 +0000 (13:58 +0000)
committerMaurizio Abba <mabba@lastline.com>
Thu, 10 Mar 2016 13:58:21 +0000 (13:58 +0000)
commit44a7c12ad0afb6a6187090e485ed1268d49619a3
tree749b22335db8d55a2e0bc524aaccf423f9edcda5
parentb7bf299e3bc285e751fa3c396292d35cd37c0cc1
decode-events: counters for decode events errors

We want to add counters in order to track the number of times we hit a
decode event. A decode event is related to an error in the protocol
decoding over a certain packet.

This patch fist modifies the decode-event list, reordering it in order
to separate single packet events from stream-related events and adding
the prefix "decoder" to decode events.
The counters are created during the decode setup and the relative event
counter is increased every time a packet with the flag PKT_IS_INVALID is
finalized in the decode phase
src/decode-events.c
src/decode-events.h
src/decode.c
src/decode.h
src/detect-engine-event.c
src/detect-engine-event.h