class VrrpInterface

A network interface on which VRRP runs. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

This interface provides the means via which VRRP receives and send packets.

 ~VrrpInterface ()

~VrrpInterface

[virtual]

bool  own (const IPv4& addr)

own

[pure virtual]

Determines whether the router owns an IP address. If the router has this IP address configured as the real IP address of one of its interfaces, then it owns it, else it does not.

Parameters:

addrthe IP address to check for.

Returns: whether the router owns the IP address.

bool  ready ()

ready

[const pure virtual]

Check whether the network interface is up.

Returns: whether the interface is up and ready.

const IPv4&  addr ()

addr

[const pure virtual]

Obtain the primary IP address of the interface. This is the first one configured.

Returns: the primary IP address of the interface. The first configured.

void  send (const Mac& src, const Mac& dst, uint32_t ether, const PAYLOAD& payload)

send

[pure virtual]

Transmits a L2 packet.

Parameters:

srcthe source MAC address.
dstthe destination MAC address.
etherthe ethernet type.
payloadthe data following the MAC header.
void  join_mcast ()

join_mcast

[pure virtual]

Join the VRRP multicast group on this interface.

void  leave_mcast ()

leave_mcast

[pure virtual]

Leave the VRRP multicast group on this interface.

void  add_mac (const Mac& mac)

add_mac

[pure virtual]

Add a MAC address to this interface.

Parameters:

macMAC address to add.
void  delete_mac (const Mac& mac)

delete_mac

[pure virtual]

Delete a MAC address from this interface.

Parameters:

macMAC address to delete from this interface.
void  start_arps ()

start_arps

[pure virtual]

Start the reception of ARP packets.

void  stop_arps ()

stop_arps

[pure virtual]

Stop the reception of ARP packets.


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