PcapPlusPlus
24.09
|
#include <PPPoELayer.h>
Public Types | |
enum | PPPoECode { PPPOE_CODE_SESSION = 0x00 , PPPOE_CODE_PADO = 0x07 , PPPOE_CODE_PADI = 0x09 , PPPOE_CODE_PADG = 0x0a , PPPOE_CODE_PADC = 0x0b , PPPOE_CODE_PADQ = 0x0c , PPPOE_CODE_PADR = 0x19 , PPPOE_CODE_PADS = 0x65 , PPPOE_CODE_PADT = 0xa7 , PPPOE_CODE_PADM = 0xd3 , PPPOE_CODE_PADN = 0xd4 } |
Public Member Functions | |
pppoe_header * | getPPPoEHeader () const |
virtual void | computeCalculateFields () |
OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
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 |
virtual void | parseNextLayer ()=0 |
virtual size_t | getHeaderLen () const =0 |
virtual std::string | toString () const =0 |
An abstract class that describes the PPPoE protocol. Contains common data and logic of the two types of PPPoE packets: PPPoE session and PPPoE discovery
PPPoE possible codes
|
virtual |
Calculate pppoe_header::payloadLength field
Implements pcpp::Layer.
|
inlinevirtual |
Implements pcpp::Layer.
|
inline |
Get a pointer to the PPPoE header. Notice this points directly to the data, so every change will change the actual packet data