PcapPlusPlus
pcpp::IPReassembly::IPv6PacketKey Class Reference

#include <IPReassembly.h>

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

Public Member Functions

 IPv6PacketKey ()
 
 IPv6PacketKey (uint32_t fragmentID, IPv6Address srcip, IPv6Address dstip)
 
 IPv6PacketKey (const IPv6PacketKey &other)
 
uint32_t getFragmentID ()
 
IPv6Address getSrcIP ()
 
IPv6Address getDstIP ()
 
void setFragmentID (uint32_t fragID)
 
void setSrcIP (const IPv6Address &srcIP)
 
void setDstIP (const IPv6Address &dstIP)
 
uint32_t getHashValue () const
 
ProtocolType getProtocolType () const
 
PacketKeyclone () const
 
- Public Member Functions inherited from pcpp::IPReassembly::PacketKey
virtual ~PacketKey ()
 

Detailed Description

Represents a key that can uniquely identify IPv6 fragment packets. The key comprises of source IPv6 address, dest IPv6 address and fragment ID (which resides in the IPv6 fragmentation extension)

Constructor & Destructor Documentation

pcpp::IPReassembly::IPv6PacketKey::IPv6PacketKey ( )
inline

A default c'tor which zeros all members

pcpp::IPReassembly::IPv6PacketKey::IPv6PacketKey ( uint32_t  fragmentID,
IPv6Address  srcip,
IPv6Address  dstip 
)
inline

A c'tor that sets values in each one of the members

Parameters
[in]fragmentIDFragment ID value
[in]srcipSource IPv6 address
[in]dstipDest IPv6 address
pcpp::IPReassembly::IPv6PacketKey::IPv6PacketKey ( const IPv6PacketKey other)
inline

A copy c'tor for this class

Member Function Documentation

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

Implements pcpp::IPReassembly::PacketKey.

IPv6Address pcpp::IPReassembly::IPv6PacketKey::getDstIP ( )
inline
Returns
Dest IP address
uint32_t pcpp::IPReassembly::IPv6PacketKey::getFragmentID ( )
inline
Returns
Fragment ID value
uint32_t pcpp::IPReassembly::IPv6PacketKey::getHashValue ( ) const
virtual
Returns
A 4-byte hash value of the packet key

Implements pcpp::IPReassembly::PacketKey.

ProtocolType pcpp::IPReassembly::IPv6PacketKey::getProtocolType ( ) const
inlinevirtual
Returns
pcpp::IPv6 protocol

Implements pcpp::IPReassembly::PacketKey.

IPv6Address pcpp::IPReassembly::IPv6PacketKey::getSrcIP ( )
inline
Returns
Source IP address
void pcpp::IPReassembly::IPv6PacketKey::setDstIP ( const IPv6Address dstIP)
inline

Set dest IPv6 address

Parameters
[in]dstIPDest IP to set
void pcpp::IPReassembly::IPv6PacketKey::setFragmentID ( uint32_t  fragID)
inline

Set fragment ID

Parameters
[in]fragIDFragment ID value to set
void pcpp::IPReassembly::IPv6PacketKey::setSrcIP ( const IPv6Address srcIP)
inline

Set source IPv6 address

Parameters
[in]srcIPSource IP to set