Convert StreamTcpSetEvent function into macro. Eases debug.

remotes/origin/master-1.2.x
Victor Julien 13 years ago
parent 58011554b0
commit e6af837b25

@ -164,6 +164,11 @@ enum
} while(0); \ } while(0); \
} }
#define StreamTcpSetEvent(p, e) { \
SCLogDebug("setting event %"PRIu8" on pkt %p (%"PRIu64")", (e), p, (p)->pcap_cnt); \
ENGINE_SET_EVENT((p), (e)); \
}
typedef struct TcpSession_ { typedef struct TcpSession_ {
uint8_t state; uint8_t state;
uint16_t flags; uint16_t flags;

@ -585,11 +585,6 @@ void StreamTcpSetOSPolicy(TcpStream *stream, Packet *p)
} }
void StreamTcpSetEvent(Packet *p, uint8_t e) {
SCLogDebug("setting event %"PRIu8" on pkt %p (%"PRIu64")", e, p, p->pcap_cnt);
ENGINE_SET_EVENT(p, e);
}
/** /**
* \brief macro to update last_ack only if the new value is higher * \brief macro to update last_ack only if the new value is higher
* *

@ -106,8 +106,6 @@ int StreamTcpCheckMemcap(uint64_t);
void StreamTcpPseudoPacketSetupHeader(Packet *, Packet *); void StreamTcpPseudoPacketSetupHeader(Packet *, Packet *);
Packet *StreamTcpPseudoSetup(Packet *, uint8_t *, uint32_t); Packet *StreamTcpPseudoSetup(Packet *, uint8_t *, uint32_t);
void StreamTcpSetEvent(Packet *p, uint8_t e);
int StreamTcpSegmentForEach(Packet *p, uint8_t flag, int StreamTcpSegmentForEach(Packet *p, uint8_t flag,
StreamSegmentCallback CallbackFunc, StreamSegmentCallback CallbackFunc,
void *data); void *data);

Loading…
Cancel
Save