The C Statistics API provides the following functions for interface handling:
ba_encode_ifname()builds a Solaris Bandwidth Manager interface name from the interface's physical name and direction.
ba_decode_ifname() extracts a physical interface name and direction from a Solaris Bandwidth Manager interface name.
ba_get_num_interfaces() returns the number of interfaces that are managed by Solaris Bandwidth Manager.
ba_list_interfaces() returns a list of the names of the interfaces that are managed by Solaris Bandwidth Manager.
ba_get_interface_config() returns configuration information for a given interface.
ba_list_interface_config() returns configuration information for all interfaces managed by Solaris Bandwidth Manager.