|
|
@ -654,7 +654,6 @@ typedef struct DecodeThreadVars_
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* \brief Recycle a packet structure for reuse.
|
|
|
|
* \brief Recycle a packet structure for reuse.
|
|
|
|
* \todo the mutex destroy & init is necessary because of the memset, reconsider
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
#define PACKET_REINIT(p) do { \
|
|
|
|
#define PACKET_REINIT(p) do { \
|
|
|
|
CLEAR_ADDR(&(p)->src); \
|
|
|
|
CLEAR_ADDR(&(p)->src); \
|
|
|
@ -712,8 +711,6 @@ typedef struct DecodeThreadVars_
|
|
|
|
(p)->pcap_cnt = 0; \
|
|
|
|
(p)->pcap_cnt = 0; \
|
|
|
|
(p)->tunnel_rtv_cnt = 0; \
|
|
|
|
(p)->tunnel_rtv_cnt = 0; \
|
|
|
|
(p)->tunnel_tpr_cnt = 0; \
|
|
|
|
(p)->tunnel_tpr_cnt = 0; \
|
|
|
|
SCMutexDestroy(&(p)->tunnel_mutex); \
|
|
|
|
|
|
|
|
SCMutexInit(&(p)->tunnel_mutex, NULL); \
|
|
|
|
|
|
|
|
(p)->events.cnt = 0; \
|
|
|
|
(p)->events.cnt = 0; \
|
|
|
|
AppLayerDecoderEventsResetEvents((p)->app_layer_events); \
|
|
|
|
AppLayerDecoderEventsResetEvents((p)->app_layer_events); \
|
|
|
|
(p)->next = NULL; \
|
|
|
|
(p)->next = NULL; \
|
|
|
|