Network Interface IP addressing module.
Changes to IP addresses bound to network interfaces can be reacted to using this module, providing a callback that can be used to trigger server socket binding or reconfiguration events.
Event handler for interfaces with IP addresses specific events.
By default, no interfaces are watched.
Public Functions
Registers to receive updates on changes to any interface.
Whether or not this handler should be notified of IP address assignment changes on any interface.
Registers this class to receive change updates on the given interface.
Which interface to subscribe to.
Whether or not this handler should be notified of IP address assignment changes on the given interface.
Handler called when an IP address is added to the interface.
Handler called when an IP address is deleted from the interface.
Handler called when the internal VLAN ID for an interface changes. If the interface loses its internal vlan id (i.e. is no longer a routed port), this will be set to 0
The IP address interface manager. For the changes to be visible, the interface may have to be passed in routed mode (see switchport_mode in eth_intf.h).
Public Functions
Returns whether the given interface exists and is able to have IP addresses.
If exists returns true, then this intf_id_t can be successfully passed into every method of the ip_intf_mgr. If not, then methods of the ip_intf_mgr can throw a no_such_interface_error exception.
Note that ip_intf_mgr::exists being true does not guarantee that the underlying L2 interface, as managed by intf_mgr, eth_intf_mgr, eth_phy_intf_mgr, eth_lag_intf_mgr, or subintf_mgr, also exists.
Returns the operational set of IP addresses of the interface.
Configures the IP addresses of the interface.
The interface ID of the interface to change the addresses of.
The set of addresses to set.
Adds an IP address to the interface.
The interface ID of the interface to add the address in.
The address to add.
Deletes an IP address of the interface.
The interface ID of the interface to delete the address in.
The address to delete.
Returns the internal VLAN ID related to a layer 3 interface. If the interface supplied is a routed interface (i.e., is configured with “no switchport”), this function will return the internal VLAN ID for the interface. If the interface is an SVI, the VLAN ID of the SVI is returned. If the interface is a layer 2 interface, VLAN ID 0 is returned.
An interface ID to query the internal VLAN ID of
Protected Functions
Private Members
Friends