"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/stream/tcp/tcp_reassembler.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

tcp_reassembler.cc  (snort3-3.1.28.0):tcp_reassembler.cc  (snort3-3.1.29.0)
skipping to change at line 541 skipping to change at line 541
} }
Packet* TcpReassembler::initialize_pdu( Packet* TcpReassembler::initialize_pdu(
TcpReassemblerState& trs, Packet* p, uint32_t pkt_flags, struct timeval tv) TcpReassemblerState& trs, Packet* p, uint32_t pkt_flags, struct timeval tv)
{ {
// partial flushes already set the pdu for http_inspect splitter processing // partial flushes already set the pdu for http_inspect splitter processing
Packet* pdu = p->was_set() ? p : DetectionEngine::set_next_packet(p); Packet* pdu = p->was_set() ? p : DetectionEngine::set_next_packet(p);
EncodeFlags enc_flags = 0; EncodeFlags enc_flags = 0;
DAQ_PktHdr_t pkth; DAQ_PktHdr_t pkth;
trs.sos.session->get_packet_header_foo(&pkth, pkt_flags); trs.sos.session->get_packet_header_foo(&pkth, p->pkth, pkt_flags);
PacketManager::format_tcp(enc_flags, p, pdu, PSEUDO_PKT_TCP, &pkth, pkth.opa que); PacketManager::format_tcp(enc_flags, p, pdu, PSEUDO_PKT_TCP, &pkth, pkth.opa que);
prep_pdu(trs, trs.sos.session->flow, p, pkt_flags, pdu); prep_pdu(trs, trs.sos.session->flow, p, pkt_flags, pdu);
assert(pdu->pkth == pdu->context->pkth); assert(pdu->pkth == pdu->context->pkth);
pdu->context->pkth->ts = tv; pdu->context->pkth->ts = tv;
pdu->dsize = 0; pdu->dsize = 0;
pdu->data = nullptr; pdu->data = nullptr;
pdu->ip_proto_next = (IpProtocol)p->flow->ip_proto; pdu->ip_proto_next = (IpProtocol)p->flow->ip_proto;
return pdu; return pdu;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)