PcapPlusPlus
22.11
|
#include <IPv6Extensions.h>
Classes | |
struct | ipv6_frag_header |
Public Member Functions | |
IPv6FragmentationHeader (uint32_t fragId, uint16_t fragOffset, bool lastFragment) | |
ipv6_frag_header * | getFragHeader () const |
bool | isFirstFragment () const |
bool | isLastFragment () const |
bool | isMoreFragments () const |
uint16_t | getFragmentOffset () const |
Public Member Functions inherited from pcpp::IPv6Extension | |
virtual size_t | getExtensionLen () const |
IPv6ExtensionType | getExtensionType () const |
virtual | ~IPv6Extension () |
IPv6Extension * | getNextHeader () const |
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 | ( | ) | const |
bool pcpp::IPv6FragmentationHeader::isFirstFragment | ( | ) | const |
bool pcpp::IPv6FragmentationHeader::isLastFragment | ( | ) | const |
bool pcpp::IPv6FragmentationHeader::isMoreFragments | ( | ) | const |