PcapPlusPlus  Next
pcpp::ArpRequest Struct Reference

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

#include <ArpLayer.h>

Public Member Functions

 ArpRequest (MacAddress const &senderMacAddress, IPv4Address const &senderIPAddress, IPv4Address const &targetIPAddress)
 Construct a new Arp Request object. More...
 

Detailed Description

A struct representing the build data for an ARP request.

An ARP request is a message sent by a machine to request the MAC address of another machine on the network.

Constructor & Destructor Documentation

◆ ArpRequest()

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

Construct a new Arp Request object.

Parameters
senderMacAddressThe MAC address of the machine sending the query.
senderIPAddressThe IP address of the machine sending the query.
targetIPAddressThe IP address of the target machine being queried.