PcapPlusPlus
pcpp::IPReassembly::PacketKey Class Referenceabstract

#include <IPReassembly.h>

Inheritance diagram for pcpp::IPReassembly::PacketKey:
pcpp::IPReassembly::IPv4PacketKey pcpp::IPReassembly::IPv6PacketKey

Public Member Functions

virtual ~PacketKey ()
 
virtual uint32_t getHashValue () const =0
 
virtual ProtocolType getProtocolType () const =0
 
virtual PacketKeyclone () const =0
 

Detailed Description

An abstract class that represents a key that can uniquely identify an IP packet. This class cannot be instantiated or copied, only its derived classes can

Constructor & Destructor Documentation

virtual pcpp::IPReassembly::PacketKey::~PacketKey ( )
inlinevirtual

A default virtual d'tor

Member Function Documentation

virtual PacketKey* pcpp::IPReassembly::PacketKey::clone ( ) const
pure virtual
Returns
A pointer to a new instance which is a clone of the current instance

Implemented in pcpp::IPReassembly::IPv6PacketKey, and pcpp::IPReassembly::IPv4PacketKey.

virtual uint32_t pcpp::IPReassembly::PacketKey::getHashValue ( ) const
pure virtual
Returns
A 4-byte hash value of the packet key

Implemented in pcpp::IPReassembly::IPv6PacketKey, and pcpp::IPReassembly::IPv4PacketKey.

virtual ProtocolType pcpp::IPReassembly::PacketKey::getProtocolType ( ) const
pure virtual
Returns
The IP protocol this key represents (pcpp::IPv4 or pcpp::IPv6)

Implemented in pcpp::IPReassembly::IPv6PacketKey, and pcpp::IPReassembly::IPv4PacketKey.