PcapPlusPlus
|
#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 () |
void | parseNextLayer () |
size_t | getHeaderLen () |
void | computeCalculateFields () |
std::string | toString () |
OsiModelLayer | getOsiModelLayer () |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () |
Layer * | getPrevLayer () |
ProtocolType | getProtocol () |
uint8_t * | getData () |
size_t | getDataLen () |
uint8_t * | getLayerPayload () |
size_t | getLayerPayloadSize () |
bool | isAllocatedToPacket () |
void | copyData (uint8_t *toArr) |
uint8_t * | getDataPtr (size_t offset=0) |
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 |
|
virtual |
|
inlinevirtual |
Implements pcpp::Layer.
|
inlinevirtual |
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
|
virtual |
Currently identifies the following next layers: IPv4Layer, IPv6Layer. Otherwise sets PayloadLayer
Implements pcpp::Layer.
|
inlinevirtual |
Implements pcpp::Layer.