PcapPlusPlus  22.11
pcpp::TcpReassemblyConfiguration Struct Reference

#include <TcpReassembly.h>

Public Member Functions

 TcpReassemblyConfiguration (bool removeConnInfo=true, uint32_t closedConnectionDelay=5, uint32_t maxNumToClean=30, uint32_t maxOutOfOrderFragments=0, bool enableBaseBufferClearCondition=true)
 

Public Attributes

bool removeConnInfo
 
uint32_t closedConnectionDelay
 
uint32_t maxNumToClean
 
uint32_t maxOutOfOrderFragments
 
bool enableBaseBufferClearCondition
 

Detailed Description

A structure for configuring the TcpReassembly class

Constructor & Destructor Documentation

◆ TcpReassemblyConfiguration()

pcpp::TcpReassemblyConfiguration::TcpReassemblyConfiguration ( bool  removeConnInfo = true,
uint32_t  closedConnectionDelay = 5,
uint32_t  maxNumToClean = 30,
uint32_t  maxOutOfOrderFragments = 0,
bool  enableBaseBufferClearCondition = true 
)
inline

A c'tor for this struct

Parameters
[in]removeConnInfoThe flag indicating whether to remove the connection data after a connection is closed. The default is true
[in]closedConnectionDelayHow long the closed connections will not be cleaned up. The value is expressed in seconds. If it's set to 0 the default value will be used. The default is 5.
[in]maxNumToCleanThe maximum number of items to be cleaned up per one call of purgeClosedConnections. If it's set to 0 the default value will be used. The default is 30.
[in]maxOutOfOrderFragmentsThe maximum number of unmatched fragments to keep per flow before missed fragments are considered lost. The default is unlimited.
[in]enableBaseBufferClearConditionTo enable to clear buffer once packet contains data from a different side than the side seen before

Member Data Documentation

◆ closedConnectionDelay

uint32_t pcpp::TcpReassemblyConfiguration::closedConnectionDelay

How long the closed connections will not be cleaned up. The value is expressed in seconds. If the value is set to 0 then TcpReassembly should use the default value. This parameter is only relevant if removeConnInfo is equal to true.

◆ enableBaseBufferClearCondition

bool pcpp::TcpReassemblyConfiguration::enableBaseBufferClearCondition

To enable to clear buffer once packet contains data from a different side than the side seen before

◆ maxNumToClean

uint32_t pcpp::TcpReassemblyConfiguration::maxNumToClean

The maximum number of items to be cleaned up per one call of purgeClosedConnections. If the value is set to 0 then TcpReassembly should use the default value. This parameter is only relevant if removeConnInfo is equal to true.

◆ maxOutOfOrderFragments

uint32_t pcpp::TcpReassemblyConfiguration::maxOutOfOrderFragments

The maximum number of fragments with a non-matching sequence-number to store per connection flow before packets are assumed permanently missed. If the value is 0, TcpReassembly should keep out of order fragments indefinitely, or until a message from the paired side is seen.

◆ removeConnInfo

bool pcpp::TcpReassemblyConfiguration::removeConnInfo

The flag indicating whether to remove the connection data after a connection is closed