ccccinelle: add formatted comment for flag test

pull/421/merge
Eric Leblond 12 years ago committed by Victor Julien
parent 4749420f32
commit 2f2916d9ec

@ -372,6 +372,7 @@ typedef struct Packet_
/* flow */
uint8_t flowflags;
/* coccinelle: Packet:flowflags:FLOW_PKT_ */
uint8_t pkt_src;

@ -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 */

@ -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;

Loading…
Cancel
Save