printf("=> Stream Data -- end\n");
#endif
SCLogDebug("smsg %p", smsg);
- BUG_ON(smsg->flow == NULL);
if (ssn != NULL) {
SCLogDebug("storing smsg %p in the tcp session", smsg);
}
}
- FlowDeReference(&smsg->flow);
} else { /* no ssn ptr */
/* if there is no ssn ptr we won't
* be inspecting this msg in detect
* so return it to the pool. */
- FlowDeReference(&smsg->flow);
-
/* return the used message to the queue */
StreamMsgReturnToPool(smsg);
}
}
smsg->data_len = 0;
- FlowReference(&smsg->flow, p->flow);
- BUG_ON(smsg->flow == NULL);
SCLogDebug("smsg %p", smsg);
SCReturn;
do {
smsg = StreamMsgGetFromQueue(ra_ctx->stream_q);
if (smsg != NULL) {
- SCLogDebug("smsg %p, next %p, prev %p, flow %p, q->len %u, "
+ SCLogDebug("smsg %p, next %p, prev %p, q->len %u, "
"smsg->datalen %u, direction %s%s",
- smsg, smsg->next, smsg->prev, smsg->flow,
+ smsg, smsg->next, smsg->prev,
ra_ctx->stream_q->len, smsg->data_len,
smsg->flags & STREAM_TOSERVER ? "toserver":"",
smsg->flags & STREAM_TOCLIENT ? "toclient":"");
- BUG_ON(smsg->flow == NULL);
-
//PrintRawDataFp(stderr, smsg->data, smsg->data_len);
/* Handle the stream msg. No need to use locking, flow is
SCLogDebug("returning smsg %p to pool", smsg);
smsg->next = NULL;
smsg->prev = NULL;
- FlowDeReference(&smsg->flow);
StreamMsgReturnToPool(smsg);
smsg = smsg_next;
}
SCLogDebug("returning smsg %p to pool", smsg);
smsg->next = NULL;
smsg->prev = NULL;
- FlowDeReference(&smsg->flow);
StreamMsgReturnToPool(smsg);
smsg = smsg_next;
}
SCLogDebug("returning smsg %p to pool", smsg);
smsg->next = NULL;
smsg->prev = NULL;
- FlowDeReference(&smsg->flow);
StreamMsgReturnToPool(smsg);
smsg = smsg_next;
}
SCLogDebug("returning smsg %p to pool", smsg);
smsg->next = NULL;
smsg->prev = NULL;
- FlowDeReference(&smsg->flow);
StreamMsgReturnToPool(smsg);
smsg = smsg_next;
}
SCLogDebug("returning smsg %p to pool", smsg);
smsg->next = NULL;
smsg->prev = NULL;
- FlowDeReference(&smsg->flow);
StreamMsgReturnToPool(smsg);
smsg = smsg_next;
}
typedef struct StreamMsg_ {
uint8_t flags; /**< msg flags */
- Flow *flow; /**< parent flow */
struct StreamMsg_ *next;
struct StreamMsg_ *prev;