PcapPlusPlus  Next
pcpp::ArpReply Struct Reference

A struct representing the build data for an ARP reply. More...

#include <ArpLayer.h>

Public Member Functions

 ArpReply (MacAddress const &senderMacAddress, IPv4Address const &senderIPAddress, MacAddress const &targetMacAddress, IPv4Address const &targetIPAddress)
 Construct a new Arp Reply object. More...
 

Detailed Description

A struct representing the build data for an ARP reply.

An ARP reply is a message sent by a machine in response to an ARP request. It contains the MAC address of the answering machine, and is sent to the IP/MAC address of the machine that sent the original ARP request.

Constructor & Destructor Documentation

◆ ArpReply()

pcpp::ArpReply::ArpReply ( MacAddress const &  senderMacAddress,
IPv4Address const &  senderIPAddress,
MacAddress const &  targetMacAddress,
IPv4Address const &  targetIPAddress 
)
inline

Construct a new Arp Reply object.

Parameters
senderMacAddressThe MAC address of the machine sending the reply.
senderIPAddressThe IP address of the machine sending the reply.
targetMacAddressThe MAC address of the target machine being replied to.
targetIPAddressThe IP address of the target machine being replied to.
Remarks
The target machine is considered the machine that sent the original ARP request.