if (stream->flags & STREAMTCP_STREAM_FLAG_DEPTH_REACHED) {
stream->flags |= STREAMTCP_STREAM_FLAG_NOREASSEMBLY;
- SCLogDebug("ssn %p: reassembly depth reached, "
- "STREAMTCP_STREAM_FLAG_NOREASSEMBLY set", ssn);
+ SCLogDebug("ssn %p / stream %p: reassembly depth reached, "
+ "STREAMTCP_STREAM_FLAG_NOREASSEMBLY set", ssn, stream);
StreamTcpReturnStreamSegments(stream);
StreamingBufferClear(&stream->sb);
return;
(stream->flags & STREAMTCP_STREAM_FLAG_GAP)) &&
(stream->flags & STREAMTCP_STREAM_FLAG_DISABLE_RAW))
{
- SCLogDebug("ssn %p: both app and raw are done, "
- "STREAMTCP_STREAM_FLAG_NOREASSEMBLY set", ssn);
+ SCLogDebug("ssn %p / stream %p: both app and raw are done, "
+ "STREAMTCP_STREAM_FLAG_NOREASSEMBLY set", ssn, stream);
stream->flags |= STREAMTCP_STREAM_FLAG_NOREASSEMBLY;
StreamTcpReturnStreamSegments(stream);
StreamingBufferClear(&stream->sb);
SCReturnInt(-1);
}
+ SCLogDebug("packet %"PRIu64" set PKT_STREAM_ADD", p->pcap_cnt);
p->flags |= PKT_STREAM_ADD;
+ } else {
+ SCLogDebug("ssn %p / stream %p: not calling StreamTcpReassembleHandleSegmentHandleData:"
+ " p->payload_len %u, STREAMTCP_STREAM_FLAG_NOREASSEMBLY %s",
+ ssn, stream, p->payload_len,
+ (stream->flags & STREAMTCP_STREAM_FLAG_NOREASSEMBLY) ? "true" : "false");
}
/* in stream inline mode even if we have no data we call the reassembly