PcapPlusPlus  Next
pcpp::gre_basic_header Struct Reference

#include <GreLayer.h>

Inheritance diagram for pcpp::gre_basic_header:
pcpp::gre1_header

Public Attributes

uint8_t recursionControl: 3
 Number of additional encapsulations which are permitted. 0 is the default value.
 
uint8_t strictSourceRouteBit: 1
 Strict source routing bit (GRE v0 only)
 
uint8_t sequenceNumBit: 1
 Set if sequence number exists.
 
uint8_t keyBit: 1
 Set if key exists.
 
uint8_t routingBit: 1
 Set if routing exists (GRE v0 only)
 
uint8_t checksumBit: 1
 Set if checksum exists (GRE v0 only)
 
uint8_t version: 3
 GRE version - can be 0 or 1.
 
uint8_t flags: 4
 Reserved.
 
uint8_t ackSequenceNumBit: 1
 Set if acknowledgment number is set (GRE v1 only)
 
uint16_t protocol
 Protocol type of the next layer.
 

Detailed Description

Represents GRE basic protocol header (common for GREv0 and GREv1)