if(!stripped)
{
tdb->ts = EXTRACT_32BITS(opt.data);
- DebugFormat(DEBUG_STREAM_STATE, "Found timestamp %lu\n", *ts);
-
+ DebugFormat(DEBUG_STREAM_STATE, "Found timestamp %lu\n", tdb->ts);
return TF_TSTAMP;
}
}
{
/* this packet is from way too far into the future */
DebugFormat(DEBUG_STREAM_STATE, "packet PAWS timestamp way too far ahead of last packet %d %d...\n",
- p->pkth->ts.tv_sec, peer_tracker->ts_last_pkt);
+ tdb->pkt->pkth->ts.tv_sec, peer_tracker->ts_last_pkt);
//inc_tcp_discards();
*eventcode |= EVENT_BAD_TIMESTAMP;
packet_dropper(tdb, NORM_TCP_OPT);
uint32_t left_seq;
DebugFormat(DEBUG_STREAM_STATE, "Checking end_seq (%X) > r_win_base (%X) && seq (%X) < r_nxt_ack(%X)\n",
- tdb->end_seq, st->r_win_base, tdb->seq, st->r_nxt_ack + st->normalizer->get_stream_window(flow, st, tdb));
+ tdb->end_seq, st->r_win_base, tdb->seq, st->r_nxt_ack + st->normalizer->get_stream_window(tdb));
if (SEQ_LT(st->r_nxt_ack, st->r_win_base))
left_seq = st->r_nxt_ack;
AddStreamNode(st, tdb, tdb->pkt->dsize, overlap, 0, tdb->seq + overlap, NULL);
DebugFormat(DEBUG_STREAM_STATE, "Attached new queue to seglist, %d bytes queued, base_seq 0x%X\n",
- p->dsize-overlap, st->seglist_base_seq);
+ tdb->pkt->dsize-overlap, st->seglist_base_seq);
MODULE_PROFILE_END(s5TcpInsertPerfStats);
}
static void ProcessTcpStream(TcpTracker *rcv, TcpSession *tcpssn, TcpDataBlock *tdb,
StreamTcpConfig* config)
{
- DebugFormat(DEBUG_STREAM_STATE, "In ProcessTcpStream(), %d bytes to queue\n", p->dsize);
+ DebugFormat(DEBUG_STREAM_STATE, "In ProcessTcpStream(), %d bytes to queue\n", tdb->pkt->dsize);
if (tdb->pkt->packet_flags & PKT_IGNORE)
return;