70 :
Layer(data, dataLen, prevLayer, packet,
ARP)
72 m_DataLen =
sizeof(
arphdr);
Definition: ArpLayer.h:60
ArpLayer(ArpOpcode opCode, const MacAddress &senderMacAddr, const MacAddress &targetMacAddr, const IPv4Address &senderIpAddr, const IPv4Address &targetIpAddr)
size_t getHeaderLen() const
Definition: ArpLayer.h:146
OsiModelLayer getOsiModelLayer() const
Definition: ArpLayer.h:173
arphdr * getArpHeader() const
Definition: ArpLayer.h:94
IPv4Address getTargetIpAddr() const
Definition: ArpLayer.h:130
std::string toString() const
MacAddress getTargetMacAddress() const
Definition: ArpLayer.h:112
void parseNextLayer()
Definition: ArpLayer.h:140
IPv4Address getSenderIpAddr() const
Definition: ArpLayer.h:121
ArpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: ArpLayer.h:69
void computeCalculateFields()
MacAddress getSenderMacAddress() const
Definition: ArpLayer.h:103
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:354
@ OsiModelNetworkLayer
Definition: ProtocolType.h:360
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