class ARPd

an ARP daemon. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

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:

vifthe VRRP interface on which the daemon runs.
 ~ARPd ()

~ARPd

void  clear ()

clear

Remove all configured IPs.

void  insert (const IPv4& ip)

insert

Add an IP for which ARP replies should be sent.

Parameters:

ipthe IP to add.
void  stop ()

stop

Stop the daemon.

void  start ()

start

Start the daemon.

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:

macthe source MAC address of the packet.
payloadthe 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:

macthe MAC address.

Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:13 2009, using kdoc 2.0a54+XORP.