PcapPlusPlus  Next
pcpp::GratuitousArpReply Struct Reference

A struct representing the build data a gratuitous ARP reply. More...

#include <ArpLayer.h>

Public Member Functions

 GratuitousArpReply (MacAddress const &senderMacAddress, IPv4Address const &senderIPAddress)
 Construct a new Gratuitous Arp Reply object. More...
 

Detailed Description

A struct representing the build data a gratuitous ARP reply.

A gratuitous ARP reply is an ARP reply that is sent by a machine to announce its presence on the network. It is gratuitous in the sense that it is not in response to an ARP request, but sent unsolicited to the network.

Constructor & Destructor Documentation

◆ GratuitousArpReply()

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

Construct a new Gratuitous Arp Reply object.

Parameters
senderMacAddressThe MAC address of the machine sending the gratuitous ARP reply.
senderIPAddressThe IP address of the machine sending the gratuitous ARP reply.
Remarks
The target MAC address is set to the broadcast address and the target IP address is set to the sender's.