|
PcapPlusPlus
20.08
|
Go to the documentation of this file. 1 #ifndef PACKETPP_ETH_LAYER
2 #define PACKETPP_ETH_LAYER
34 #define PCPP_ETHERTYPE_IP 0x0800
36 #define PCPP_ETHERTYPE_ARP 0x0806
38 #define PCPP_ETHERTYPE_REVARP 0x8035
40 #define PCPP_ETHERTYPE_AT 0x809B
42 #define PCPP_ETHERTYPE_AARP 0x80F3
44 #define PCPP_ETHERTYPE_VLAN 0x8100
46 #define PCPP_ETHERTYPE_IPX 0x8137
48 #define PCPP_ETHERTYPE_IPV6 0x86dd
50 #define PCPP_ETHERTYPE_LOOPBACK 0x9000
52 #define PCPP_ETHERTYPE_PPPOED 0x8863
54 #define PCPP_ETHERTYPE_PPPOES 0x8864
56 #define PCPP_ETHERTYPE_MPLS 0x8847
58 #define PCPP_ETHERTYPE_PPP 0x880B
OsiModelLayer getOsiModelLayer() const
Definition: EthLayer.h:146
OsiModelLayer
Definition: ProtocolType.h:233
EthLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: EthLayer.h:83
MacAddress getDestMac() const
Definition: EthLayer.h:117
void computeCalculateFields()
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:238
void copyTo(uint8_t **arr) const
Definition: MacAddress.h:143
Definition: MacAddress.h:27
size_t getHeaderLen() const
Definition: EthLayer.h:137
void setDestMac(const MacAddress &destMac)
Definition: EthLayer.h:123
const ProtocolType Ethernet
Definition: ProtocolType.h:28
EthLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: EthLayer.h:74
The main namespace for the PcapPlusPlus lib.
MacAddress getSourceMac() const
Definition: EthLayer.h:105
Definition: EthLayer.h:65
std::string toString() const
void setSourceMac(const MacAddress &sourceMac)
Definition: EthLayer.h:111
ether_header * getEthHeader() const
Definition: EthLayer.h:99