1 #ifndef PACKETPP_SLL2_LAYER 2 #define PACKETPP_SLL2_LAYER 67 Sll2Layer(uint32_t interfaceIndex, uint16_t ARPHRDType, uint8_t packetType);
83 static bool isDataValid(
const uint8_t* data,
size_t dataLen);
89 uint16_t getProtocolType()
const;
95 void setProtocolType(uint16_t protocolType);
101 uint32_t getInterfaceIndex()
const;
107 void setInterfaceIndex(uint32_t interfaceIndex);
113 uint16_t getArphrdType()
const;
119 void setArphrdType(uint16_t arphrdType);
125 uint8_t getPacketType()
const;
131 void setPacketType(uint8_t packetType);
137 uint8_t getLinkLayerAddrLen()
const;
143 const uint8_t* getLinkLayerAddr()
const;
151 bool setLinkLayerAddr(
const uint8_t* addr,
size_t addrLength);
164 bool setMacAddressAsLinkLayer(
const MacAddress& macAddr);
173 void parseNextLayer();
178 void computeCalculateFields();
185 std::string toString()
const;
const ProtocolType SLL2
Definition: ProtocolType.h:328
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:333
size_t getHeaderLen() const
Definition: Sll2Layer.h:183
Definition: ProtocolType.h:338
Sll2Layer(uint8_t *data, size_t dataLen, Packet *packet)
Definition: Sll2Layer.h:59
sll2_header * getSll2Header() const
Definition: Sll2Layer.h:75
Definition: Sll2Layer.h:50
Definition: MacAddress.h:28
OsiModelLayer getOsiModelLayer() const
Definition: Sll2Layer.h:187