| 
 | 
 | ||||||||||||||||
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:
| addr | the 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:
| src | the source MAC address. | 
| dst | the destination MAC address. | 
| ether | the ethernet type. | 
| payload | the 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:
| mac | MAC address to add. | 
| void	     delete_mac (const Mac& mac) | delete_mac | 
[pure virtual]
Delete a MAC address from this interface.
Parameters:
| mac | MAC 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.