This daemon can be configured to "own" several IPs for which it will send out ARP replies when receiving ARP requests.
ARPd (VrrpInterface& vif)
| ARPd |
Parameters:
vif | the VRRP interface on which the daemon runs. |
~ARPd ()
| ~ARPd |
void clear ()
| clear |
void insert (const IPv4& ip)
| insert |
Add an IP for which ARP replies should be sent.
Parameters:
ip | the IP to add. |
void stop ()
| stop |
void start ()
| start |
void ips_updated ()
| ips_updated |
Using this method the caller notifies ARPd that it has finished manipulating the IP addresses. This way one can clear and add IPs one by one without causing ARPd to stop (if IPs are cleared) and resume if IPs are added.
void recv (const Mac& src, const PAYLOAD& payload)
| recv |
This method notifies the reception of an ARP packet.
Parameters:
mac | the source MAC address of the packet. |
payload | the ARP header and data. |
void set_mac (const Mac& mac)
| set_mac |
Sets the MAC address of the ARP daemon, used when generating replies.
Parameters:
mac | the MAC address. |