1 #ifndef PACKETPP_ARP_LAYER 2 #define PACKETPP_ARP_LAYER 132 void computeCalculateFields();
134 std::string toString()
const;
The main namespace for the PcapPlusPlus lib.
OsiModelLayer
Definition: ProtocolType.h:298
IPv4Address getTargetIpAddr() const
Definition: ArpLayer.h:110
uint32_t senderIpAddr
Definition: ArpLayer.h:37
uint8_t targetMacAddr[6]
Definition: ArpLayer.h:39
ARP request.
Definition: ArpLayer.h:50
Definition: ArpLayer.h:58
uint16_t opcode
Definition: ArpLayer.h:33
ArpOpcode
Definition: ArpLayer.h:48
uint32_t targetIpAddr
Definition: ArpLayer.h:41
uint8_t hardwareSize
Definition: ArpLayer.h:29
OsiModelLayer getOsiModelLayer() const
Definition: ArpLayer.h:136
Definition: ProtocolType.h:305
uint16_t hardwareType
Definition: ArpLayer.h:25
Definition: IpAddress.h:27
IPv4Address getSenderIpAddr() const
Definition: ArpLayer.h:104
uint8_t senderMacAddr[6]
Definition: ArpLayer.h:35
size_t getHeaderLen() const
Definition: ArpLayer.h:122
uint16_t protocolType
Definition: ArpLayer.h:27
ARP reply (response)
Definition: ArpLayer.h:51
void parseNextLayer()
Definition: ArpLayer.h:117
ArpLayer(uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet)
Definition: ArpLayer.h:68
Definition: ArpLayer.h:22
MacAddress getSenderMacAddress() const
Definition: ArpLayer.h:92
Definition: MacAddress.h:28
const ProtocolType ARP
Definition: ProtocolType.h:73
arphdr * getArpHeader() const
Definition: ArpLayer.h:86
uint8_t protocolSize
Definition: ArpLayer.h:31
MacAddress getTargetMacAddress() const
Definition: ArpLayer.h:98