67 Sll2Layer(uint32_t interfaceIndex, uint16_t ARPHRDType, uint8_t packetType);
Definition: MacAddress.h:25
Definition: Sll2Layer.h:50
uint8_t getLinkLayerAddrLen() const
const uint8_t * getLinkLayerAddr() const
void setArphrdType(uint16_t arphrdType)
bool setLinkLayerAddr(const uint8_t *addr, size_t addrLength)
uint8_t getPacketType() const
size_t getHeaderLen() const override
Definition: Sll2Layer.h:187
Sll2Layer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: Sll2Layer.h:58
void computeCalculateFields() override
uint16_t getProtocolType() const
bool setMacAddressAsLinkLayer(const MacAddress &macAddr)
void setProtocolType(uint16_t protocolType)
std::string toString() const override
OsiModelLayer getOsiModelLayer() const override
Definition: Sll2Layer.h:194
void setPacketType(uint8_t packetType)
uint16_t getArphrdType() const
MacAddress getLinkLayerAsMacAddress()
sll2_header * getSll2Header() const
Definition: Sll2Layer.h:76
void parseNextLayer() override
Sll2Layer(uint32_t interfaceIndex, uint16_t ARPHRDType, uint8_t packetType)
void setInterfaceIndex(uint32_t interfaceIndex)
uint32_t getInterfaceIndex() const
static bool isDataValid(const uint8_t *data, size_t dataLen)
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:368
const ProtocolType SLL2
Definition: ProtocolType.h:333