34 #define PCPP_ETHERTYPE_IP 0x0800
36 #define PCPP_ETHERTYPE_ARP 0x0806
38 #define PCPP_ETHERTYPE_ETHBRIDGE 0x6558
40 #define PCPP_ETHERTYPE_REVARP 0x8035
42 #define PCPP_ETHERTYPE_AT 0x809B
44 #define PCPP_ETHERTYPE_AARP 0x80F3
46 #define PCPP_ETHERTYPE_VLAN 0x8100
48 #define PCPP_ETHERTYPE_IPX 0x8137
50 #define PCPP_ETHERTYPE_IPV6 0x86dd
52 #define PCPP_ETHERTYPE_LOOPBACK 0x9000
54 #define PCPP_ETHERTYPE_PPPOED 0x8863
56 #define PCPP_ETHERTYPE_PPPOES 0x8864
58 #define PCPP_ETHERTYPE_MPLS 0x8847
60 #define PCPP_ETHERTYPE_PPP 0x880B
62 #define PCPP_ETHERTYPE_ROCEV1 0x8915
64 #define PCPP_ETHERTYPE_IEEE_802_1AD 0x88A8
66 #define PCPP_ETHERTYPE_WAKE_ON_LAN 0x0842
Definition: EthLayer.h:73
std::string toString() const
void computeCalculateFields()
size_t getHeaderLen() const
Definition: EthLayer.h:164
OsiModelLayer getOsiModelLayer() const
Definition: EthLayer.h:176
static bool isDataValid(const uint8_t *data, size_t dataLen)
EthLayer(const MacAddress &sourceMac, const MacAddress &destMac, uint16_t etherType=0)
ether_header * getEthHeader() const
Definition: EthLayer.h:112
void setSourceMac(const MacAddress &sourceMac)
Definition: EthLayer.h:130
MacAddress getDestMac() const
Definition: EthLayer.h:139
MacAddress getSourceMac() const
Definition: EthLayer.h:121
EthLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: EthLayer.h:91
void setDestMac(const MacAddress &destMac)
Definition: EthLayer.h:148
EthLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: EthLayer.h:81
Definition: MacAddress.h:25
void copyTo(uint8_t **arr) const
Definition: MacAddress.h:152
The main namespace for the PcapPlusPlus lib.
const ProtocolType Ethernet
Definition: ProtocolType.h:33
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:358