]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
ccccinelle: add formatted comment for flag test
authorEric Leblond <eric@regit.org>
Fri, 5 Jul 2013 09:16:26 +0000 (11:16 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 13 Jul 2013 13:12:56 +0000 (15:12 +0200)
src/decode.h
src/detect.h
src/stream-tcp-private.h

index bf1f34a8346b169f1345b4d3040bfa64bdc17b98..b9cccd71ac28a9a64b16538fadd6f9c68dd65367 100644 (file)
@@ -372,6 +372,7 @@ typedef struct Packet_
 
     /* flow */
     uint8_t flowflags;
+    /* coccinelle: Packet:flowflags:FLOW_PKT_ */
 
     uint8_t pkt_src;
 
index 57acb988d73c14bbd87acd5058167b77f2db1df8..3fd89ee693328aa22b22635d7d10f8bb8ac13fbe 100644 (file)
@@ -332,6 +332,7 @@ typedef struct IPOnlyCIDRItem_ {
 typedef struct SignatureHeader_ {
     union {
         struct {
+            /* coccinelle: SignatureHeader:flags:SIG_FLAG */
             uint32_t flags;
             uint16_t alproto;
             uint16_t dsize_low;
@@ -370,6 +371,7 @@ typedef struct SigMatch_ {
 typedef struct Signature_ {
     union {
         struct {
+            /* coccinelle: Signature:flags:SIG_FLAG */
             uint32_t flags;
             uint16_t alproto;
             uint16_t dsize_low;
@@ -449,6 +451,8 @@ typedef struct Signature_ {
 
     /* used to hold flags that are predominantly used during init */
     uint32_t init_flags;
+    /* coccinelle: Signature:init_flags:SIG_FLAG_INIT_ */
+
     /** number of sigmatches in the match and pmatch list */
     uint16_t sm_cnt;
     /* used at init to determine max dsize */
index dc60c742ebae2c59edccd1d723b7421883149592..992c16544d49ca0e54490afaf395a14305c8f4f9 100644 (file)
@@ -57,11 +57,13 @@ typedef struct TcpSegment_ {
     uint32_t seq;
     struct TcpSegment_ *next;
     struct TcpSegment_ *prev;
+    /* coccinelle: TcpSegment:flags:SEGMENTTCP_FLAG */
     uint8_t flags;
 } TcpSegment;
 
 typedef struct TcpStream_ {
     uint16_t flags;                 /**< Flag specific to the stream e.g. Timestamp */
+    /* coccinelle: TcpStream:flags:STREAMTCP_STREAM_FLAG_ */
     uint8_t wscale;                 /**< wscale setting in this direction */
     uint8_t os_policy;              /**< target based OS policy used for reassembly and handling packets*/
 
@@ -205,6 +207,7 @@ typedef struct TcpSession_ {
     PoolThreadReserved res;
     uint8_t state;
     uint8_t queue_len;                      /**< length of queue list below */
+    /* coccinelle: TcpSession:flags:STREAMTCP_FLAG */
     uint16_t flags;
     TcpStream server;
     TcpStream client;