PcapPlusPlus
|
#include <IPv6Extensions.h>
Classes | |
struct | ipv6_frag_header |
Public Member Functions | |
IPv6FragmentationHeader (uint32_t fragId, uint16_t fragOffset, bool lastFragment) | |
ipv6_frag_header * | getFragHeader () |
bool | isFirstFragment () |
bool | isLastFragment () |
bool | isMoreFragments () |
uint16_t | getFragmentOffset () |
Public Member Functions inherited from pcpp::IPv6Extension | |
virtual size_t | getExtensionLen () const |
IPv6ExtensionType | getExtensionType () |
virtual | ~IPv6Extension () |
Additional Inherited Members | |
Public Types inherited from pcpp::IPv6Extension | |
enum | IPv6ExtensionType { IPv6HopByHop = 0, IPv6Routing = 43, IPv6Fragmentation = 44, IPv6AuthenticationHdr = 51, IPv6Destination = 60, IPv6ExtensionUnknown = 255 } |
Represents an IPv6 fragmentation extension header and allows easy access to all fragmentation parameters
pcpp::IPv6FragmentationHeader::IPv6FragmentationHeader | ( | uint32_t | fragId, |
uint16_t | fragOffset, | ||
bool | lastFragment | ||
) |
A c'tor for creating a new IPv6 fragmentation extension object not bounded to a packet. Useful for adding new extensions to an IPv6 layer with IPv6Layer::addExtension()
[in] | fragId | Fragmentation ID |
[in] | fragOffset | Fragmentation offset |
[in] | lastFragment | Indicates whether this fragment is the last one |
|
inline |
Get a pointer to the fragmentation header. Notice the returned pointer points directly to the data, so every change will modify the actual packet data
uint16_t pcpp::IPv6FragmentationHeader::getFragmentOffset | ( | ) |
bool pcpp::IPv6FragmentationHeader::isFirstFragment | ( | ) |
bool pcpp::IPv6FragmentationHeader::isLastFragment | ( | ) |
bool pcpp::IPv6FragmentationHeader::isMoreFragments | ( | ) |