PcapPlusPlus  21.05
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)
 

Public Attributes

bool removeConnInfo
 
uint32_t closedConnectionDelay
 
uint32_t maxNumToClean
 
uint32_t maxOutOfOrderFragments
 

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 
)
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.

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.

◆ 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