70 :
Layer(data, dataLen, prevLayer, packet,
ARP)
72 m_DataLen =
sizeof(
arphdr);
95 return reinterpret_cast<arphdr*
>(m_Data);
Definition: ArpLayer.h:60
ArpLayer(ArpOpcode opCode, const MacAddress &senderMacAddr, const MacAddress &targetMacAddr, const IPv4Address &senderIpAddr, const IPv4Address &targetIpAddr)
arphdr * getArpHeader() const
Definition: ArpLayer.h:93
IPv4Address getTargetIpAddr() const
Definition: ArpLayer.h:129
void parseNextLayer() override
Definition: ArpLayer.h:139
size_t getHeaderLen() const override
Definition: ArpLayer.h:145
MacAddress getTargetMacAddress() const
Definition: ArpLayer.h:111
void computeCalculateFields() override
IPv4Address getSenderIpAddr() const
Definition: ArpLayer.h:120
std::string toString() const override
ArpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: ArpLayer.h:69
OsiModelLayer getOsiModelLayer() const override
Definition: ArpLayer.h:172
MacAddress getSenderMacAddress() const
Definition: ArpLayer.h:102
Definition: IpAddress.h:32
Definition: MacAddress.h:25
The main namespace for the PcapPlusPlus lib.
ArpOpcode
Definition: ArpLayer.h:50
@ ARP_REQUEST
ARP request.
Definition: ArpLayer.h:51
@ ARP_REPLY
ARP reply (response)
Definition: ArpLayer.h:52
OsiModelLayer
Definition: ProtocolType.h:364
@ OsiModelNetworkLayer
Definition: ProtocolType.h:370
const ProtocolType ARP
Definition: ProtocolType.h:78
Definition: ArpLayer.h:22
uint32_t targetIpAddr
Definition: ArpLayer.h:42
uint8_t protocolSize
Definition: ArpLayer.h:31
uint16_t opcode
Definition: ArpLayer.h:34
uint16_t hardwareType
Definition: ArpLayer.h:24
uint8_t targetMacAddr[6]
Definition: ArpLayer.h:40
uint32_t senderIpAddr
Definition: ArpLayer.h:38
uint8_t hardwareSize
Definition: ArpLayer.h:28
uint8_t senderMacAddr[6]
Definition: ArpLayer.h:36
uint16_t protocolType
Definition: ArpLayer.h:26