PcapPlusPlus  Next
pcpp::GREv1Layer::SerializedFields Struct Reference

#include <GreLayer.h>

Inheritance diagram for pcpp::GREv1Layer::SerializedFields:
pcpp::GreLayer::SerializedFields pcpp::Layer::SerializedFields

Static Public Member Functions

static std::vector< FieldDescriptor > all ()
 
- Static Public Member Functions inherited from pcpp::GreLayer::SerializedFields
static std::vector< FieldDescriptor > all ()
 
- Static Public Member Functions inherited from pcpp::Layer::SerializedFields
static std::vector< FieldDescriptor > all ()
 

Static Public Attributes

static const FieldDescriptor AckSequenceNumBit
 Acknowledgment number present bit (1 if set, 0 otherwise)
 
static const FieldDescriptor PayloadLength
 Size of the payload not including the GRE header, in bytes and in host byte order.
 
static const FieldDescriptor CallID
 Peer Call ID for the PPTP session, in host byte order.
 
static const FieldDescriptor AcknowledgmentNumber
 Acknowledgment sequence number, in host byte order (written if ackSequenceNumBit is set)
 
static constexpr uint16_t MaxID = GreLayer::SerializedFields::MaxID + 4
 Maximum field ID used by the layer.
 
- Static Public Attributes inherited from pcpp::GreLayer::SerializedFields
static const FieldDescriptor StrictSourceRouteBit
 Strict source route bit (1 if set, 0 otherwise)
 
static const FieldDescriptor SequenceNumBit
 Sequence number present bit (1 if set, 0 otherwise)
 
static const FieldDescriptor KeyBit
 Key present bit (1 if set, 0 otherwise)
 
static const FieldDescriptor RoutingBit
 Routing present bit (1 if set, 0 otherwise)
 
static const FieldDescriptor ChecksumBit
 Checksum present bit (1 if set, 0 otherwise)
 
static const FieldDescriptor RecursionControl
 Number of additional encapsulations permitted (3-bit counter)
 
static const FieldDescriptor Flags
 Reserved flags (bits 8 to 12)
 
static const FieldDescriptor Version
 GRE protocol version (3 bits: 0 for GREv0, 1 for GREv1)
 
static const FieldDescriptor Protocol
 Encapsulated protocol EtherType, in host byte order.
 
static const FieldDescriptor SequenceNumber
 Sequence number, in host byte order (written if sequenceNumBit is set)
 
static constexpr uint16_t MaxID = Layer::SerializedFields::MaxID + 10
 Maximum field ID used by the layer.
 
- Static Public Attributes inherited from pcpp::Layer::SerializedFields
static const FieldDescriptor ProtocolName
 Field descriptor for the layer protocol name.
 
static const FieldDescriptor ProtocolId
 Field descriptor for the layer protocol ID.
 
static const FieldDescriptor Length
 Field descriptor for the layer length.
 
static constexpr uint16_t MaxID = 1
 Maximum field ID used by the layer.
 

Detailed Description

Fields written by GREv1Layer's serializeLayer(), in addition to GreLayer::SerializedFields.

Member Function Documentation

◆ all()

static std::vector<FieldDescriptor> pcpp::GREv1Layer::SerializedFields::all ( )
inlinestatic
Returns
All field descriptors for GREv1Layer