Skip to content

Commit

Permalink
Move debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
seladb committed Sep 24, 2024
1 parent f07c629 commit a1f3495
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Packet++/src/TcpReassembly.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,15 @@ namespace pcpp
// if this side already got FIN or RST packet before, ignore this packet as this side is considered closed
if (tcpReassemblyData->twoSides[sideIndex].gotFinOrRst)
{
PCPP_LOG_DEBUG("Got a packet after FIN or RST were already seen on this side ("
<< static_cast<int>(sideIndex) << "). Ignoring this packet");
if (!tcpReassemblyData->twoSides[1 - sideIndex].gotFinOrRst && isRst)
{
handleFinOrRst(tcpReassemblyData, 1 - sideIndex, flowKey, isRst);
return FIN_RSTWithNoData;
}

PCPP_LOG_DEBUG("Got a packet after FIN or RST were already seen on this side ("
<< static_cast<int>(sideIndex) << "). Ignoring this packet");

return Ignore_PacketOfClosedFlow;
}

Expand Down

0 comments on commit a1f3495

Please sign in to comment.