]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer: Extend event container with progress
authorJeff Lucovsky <jeff@lucovsky.org>
Tue, 21 May 2019 21:55:45 +0000 (14:55 -0700)
committerVictor Julien <victor@inliniac.net>
Thu, 20 Jun 2019 18:14:58 +0000 (20:14 +0200)
src/app-layer-events.h
src/app-layer-parser.c

index 4cd945826bd00e96897c9033b060e4e1419ab8ba..2ea0b1cb06a707a5457d239d21940855a888f27a 100644 (file)
@@ -38,6 +38,8 @@ struct AppLayerDecoderEvents_ {
     uint8_t cnt;
     /* current event buffer size */
     uint8_t events_buffer_size;
+    /* last logged */
+    uint8_t event_last_logged;
 };
 
 /* app layer pkt level events */
index 3c8eab42b93c34a430f177fd41e612e38eb208c0..dcca37ff1b7ae5ecb053fe73cc251ad86237e11f 100644 (file)
@@ -560,6 +560,7 @@ void AppLayerParserRegisterGetEventInfoById(uint8_t ipproto, AppProto alproto,
 
     SCReturn;
 }
+
 void AppLayerParserRegisterGetEventInfo(uint8_t ipproto, AppProto alproto,
     int (*StateGetEventInfo)(const char *event_name, int *event_id,
                              AppLayerEventType *event_type))