1 #ifndef PACKETPP_SLL_LAYER 2 #define PACKETPP_SLL_LAYER 54 SllLayer(uint8_t* data,
size_t dataLen,
Packet* packet) :
Layer(data, dataLen, nullptr, packet) { m_Protocol =
SLL; }
61 SllLayer(uint16_t packetType, uint16_t ARPHRDType);
77 bool setLinkLayerAddr(uint8_t* addr,
size_t addrLength);
84 bool setMacAddressAsLinkLayer(
const MacAddress& macAddr);
91 void parseNextLayer();
101 void computeCalculateFields();
103 std::string toString()
const;
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:333
size_t getHeaderLen() const
Definition: SllLayer.h:96
Definition: ProtocolType.h:338
const ProtocolType SLL
Definition: ProtocolType.h:138
OsiModelLayer getOsiModelLayer() const
Definition: SllLayer.h:105
SllLayer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: SllLayer.h:54
Definition: SllLayer.h:45
sll_header * getSllHeader() const
Definition: SllLayer.h:69
Definition: MacAddress.h:28