PcapPlusPlus  20.08+
pcpp::TcpReassemblyConfiguration Struct Reference

#include <TcpReassembly.h>

Public Member Functions

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

Public Attributes

bool removeConnInfo
 
uint32_t closedConnectionDelay
 
uint32_t maxNumToClean
 

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

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.

◆ removeConnInfo

bool pcpp::TcpReassemblyConfiguration::removeConnInfo

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