PcapPlusPlus  21.05
pcpp::IPv6HopByHopHeader Class Reference

#include <IPv6Extensions.h>

Inheritance diagram for pcpp::IPv6HopByHopHeader:
pcpp::IPv6TLVOptionHeader pcpp::IPv6Extension

Public Member Functions

 IPv6HopByHopHeader (const std::vector< IPv6TLVOptionBuilder > &options)
 
- Public Member Functions inherited from pcpp::IPv6TLVOptionHeader
IPv6Option getOption (uint8_t optionType) const
 
IPv6Option getFirstOption () const
 
IPv6Option getNextOption (IPv6Option &option) const
 
size_t getOptionCount () const
 
- Public Member Functions inherited from pcpp::IPv6Extension
virtual size_t getExtensionLen () const
 
IPv6ExtensionType getExtensionType () const
 
virtual ~IPv6Extension ()
 
IPv6ExtensiongetNextHeader () const
 

Additional Inherited Members

- Public Types inherited from pcpp::IPv6Extension
enum  IPv6ExtensionType {
  IPv6HopByHop = 0, IPv6Routing = 43, IPv6Fragmentation = 44, IPv6AuthenticationHdr = 51,
  IPv6Destination = 60, IPv6ExtensionUnknown = 255
}
 
- Protected Member Functions inherited from pcpp::IPv6TLVOptionHeader
 IPv6TLVOptionHeader (const std::vector< IPv6TLVOptionBuilder > &options)
 

Detailed Description

Represents IPv6 Hop-By-Hop extension header and allows easy access to all of its data including the TLV options stored

Constructor & Destructor Documentation

◆ IPv6HopByHopHeader()

pcpp::IPv6HopByHopHeader::IPv6HopByHopHeader ( const std::vector< IPv6TLVOptionBuilder > &  options)
inline

A c'tor for creating a new IPv6 Hop-By-Hop extension object not bounded to a packet. Useful for adding new extensions to an IPv6 layer with IPv6Layer::addExtension()

Parameters
[in]optionsA vector of IPv6TLVOptionHeader::TLVOptionBuilder instances which define the options that will be stored in the extension data. Notice this vector is read-only and its content won't be modified