67 Sll2Layer(uint32_t interfaceIndex, uint16_t ARPHRDType, uint8_t packetType);
Definition: MacAddress.h:25
Definition: Sll2Layer.h:50
size_t getHeaderLen() const
Definition: Sll2Layer.h:188
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
void computeCalculateFields()
Sll2Layer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: Sll2Layer.h:58
uint16_t getProtocolType() const
bool setMacAddressAsLinkLayer(const MacAddress &macAddr)
void setProtocolType(uint16_t protocolType)
void setPacketType(uint8_t packetType)
std::string toString() const
uint16_t getArphrdType() const
MacAddress getLinkLayerAsMacAddress()
sll2_header * getSll2Header() const
Definition: Sll2Layer.h:77
Sll2Layer(uint32_t interfaceIndex, uint16_t ARPHRDType, uint8_t packetType)
void setInterfaceIndex(uint32_t interfaceIndex)
uint32_t getInterfaceIndex() const
OsiModelLayer getOsiModelLayer() const
Definition: Sll2Layer.h:195
static bool isDataValid(const uint8_t *data, size_t dataLen)
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:354
@ OsiModelDataLinkLayer
Definition: ProtocolType.h:358
const ProtocolType SLL2
Definition: ProtocolType.h:333