PcapPlusPlus
19.12
|
#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 () |
size_t | getHeaderLen () const |
void | computeCalculateFields () |
std::string | toString () const |
OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () 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 |
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.