1 #ifndef PACKETPP_ETH_LAYER 2 #define PACKETPP_ETH_LAYER 34 #define PCPP_ETHERTYPE_PUP 0x0200 36 #define PCPP_ETHERTYPE_SPRITE 0x0500 38 #define PCPP_ETHERTYPE_IP 0x0800 40 #define PCPP_ETHERTYPE_ARP 0x0806 42 #define PCPP_ETHERTYPE_REVARP 0x8035 44 #define PCPP_ETHERTYPE_AT 0x809B 46 #define PCPP_ETHERTYPE_AARP 0x80F3 48 #define PCPP_ETHERTYPE_VLAN 0x8100 50 #define PCPP_ETHERTYPE_IPX 0x8137 52 #define PCPP_ETHERTYPE_IPV6 0x86dd 54 #define PCPP_ETHERTYPE_LOOPBACK 0x9000 56 #define PCPP_ETHERTYPE_PPPOED 0x8863 58 #define PCPP_ETHERTYPE_PPPOES 0x8864 60 #define PCPP_ETHERTYPE_MPLS 0x8847 62 #define PCPP_ETHERTYPE_PPP 0x880B EthLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: EthLayer.h:87
void setDestMac(const MacAddress &destMac)
Definition: EthLayer.h:127
uint8_t dstMac[6]
Definition: EthLayer.h:23
uint16_t etherType
Definition: EthLayer.h:27
void setSourceMac(const MacAddress &sourceMac)
Definition: EthLayer.h:115
Definition: ProtocolType.h:218
Definition: ProtocolType.h:26
MacAddress getDestMac()
Definition: EthLayer.h:121
Definition: EthLayer.h:21
Definition: MacAddress.h:21
OsiModelLayer getOsiModelLayer()
Definition: EthLayer.h:150
void copyTo(uint8_t **arr)
OsiModelLayer
Definition: ProtocolType.h:213
size_t getHeaderLen()
Definition: EthLayer.h:141
uint8_t srcMac[6]
Definition: EthLayer.h:25
void computeCalculateFields()
Definition: EthLayer.h:69
EthLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: EthLayer.h:78
MacAddress getSourceMac()
Definition: EthLayer.h:109
The main namespace for the PcapPlusPlus lib.
ether_header * getEthHeader()
Definition: EthLayer.h:103