Manager for the MAC address table.
Public Functions
Returns the MAC table entry for the given VLAN and MAC address. If the given MAC is not found, or if the VLAN queried doesn’t exist, an empty mac_entry_t is returned (use the operator!() to easily determine whether that is the case).
The VLAN in which to perform the look up.
The MAC address to look up.
Protected Functions
Private Members
An entry from the MAC address table. TODO: add entry type, number of moves, last move time.
Public Functions
Getter for ‘eth_addr’: the MAC address that was learned.
Getter for ‘intf’: the interface from which the MAC address was learned.
Non-existent entries are effectively false (so this returns true).
Returns a string representation of the current object’s values.
Friends
A utility stream operator that adds a string representation of mac_entry_t to the ostream.