|
PcapPlusPlus
Next
|
#include <GreLayer.h>
Public Member Functions | |
| PPP_PPTPLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
| PPP_PPTPLayer (uint8_t address, uint8_t control) | |
| ppp_pptp_header * | getPPP_PPTPHeader () const |
| void | parseNextLayer () override |
| Currently identifies the following next layers: IPv4Layer, IPv6Layer. Otherwise sets PayloadLayer. | |
| size_t | getHeaderLen () const override |
| void | computeCalculateFields () override |
| std::string | toString () const override |
| OsiModelLayer | getOsiModelLayer () const override |
Public Member Functions inherited from pcpp::Layer | |
| ~Layer () override | |
| Layer * | getNextLayer () const |
| Layer * | getPrevLayer () const |
| ProtocolType | getProtocol () const |
| bool | isMemberOfProtocolFamily (ProtocolTypeFamily protocolTypeFamily) const |
| uint8_t * | getData () const |
| size_t | getDataLen () const |
| uint8_t * | getLayerPayload () const |
| size_t | getLayerPayloadSize () const |
| bool | isAllocatedToPacket () const |
| void | copyData (uint8_t *toArr) const |
| uint8_t * | getDataPtr (size_t offset=0) const override |
Static Public Member Functions | |
| static bool | isDataValid (const uint8_t *data, size_t dataLen) |
Additional Inherited Members | |
Protected Member Functions inherited from pcpp::Layer | |
| template<typename T , typename... Args> | |
| Layer * | constructNextLayer (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
| template<typename T , typename TFallback , typename... Args> | |
| Layer * | tryConstructNextLayerWithFallback (uint8_t *data, size_t dataLen, Packet *packet, Args &&... extraArgs) |
Static Protected Member Functions inherited from pcpp::Layer | |
| template<typename T > | |
| static bool | canReinterpretAs (const uint8_t *data, size_t dataLen) |
| Check if the data is large enough to reinterpret as a type. More... | |
Represent a PPP (point-to-point) protocol header that comes after GREv1 header, as part of PPTP - Point-to-Point Tunneling Protocol
|
inline |
A constructor that creates the layer from an existing packet raw data
| [in] | data | A pointer to the raw data (will be casted to ppp_pptp_header) |
| [in] | dataLen | Size of the data in bytes |
| [in] | prevLayer | A pointer to the previous layer |
| [in] | packet | A pointer to the Packet instance where layer will be stored in |
| pcpp::PPP_PPTPLayer::PPP_PPTPLayer | ( | uint8_t | address, |
| uint8_t | control | ||
| ) |
A constructor that allocates a new PPP-PPTP header
| [in] | address | Address field |
| [in] | control | Control field |
|
overridevirtual |
|
inlineoverridevirtual |
Implements pcpp::Layer.
|
inlineoverridevirtual |
Implements pcpp::Layer.
|
inline |
Get a pointer to the PPP-PPTP header. Notice this points directly to the data, so every change will change the actual packet data
|
inlinestatic |
A static method that validates the input data
| [in] | data | The pointer to the beginning of a byte stream of a PPP-PPTP packet |
| [in] | dataLen | The length of the byte stream |
|
inlineoverridevirtual |
Implements pcpp::Layer.