ba_list_interface_config() -- retrieve configuration information for all managed interfaces
#include <netinet/ba_stat.h> int ba_list_interface_config( ba_interface_t *interfaces /*interface information*/ );
The function ba_list_interface_config() retrieves the configuration information for all managed interfaces.
Structures of type ba_interface_t are defined as follows:
typedef struct {
ba_name_t name_suffix;
uint_t activate;
uint_t rate;
} ba_interface_t;
Where suffix is either in to indicate that the interface handles incoming traffic, or out to indicate that it handles outgoing traffic.
You must always allocate sufficient memory for the buffer, the size of which is dependent on the number of interfaces.
The function ba_list_interface_config() returns 0 on success, and -1 on error.
If an error occurs during a call to ba_list_interface_config(), the variable ba_errno is set to one of the error codes listed in Table 4-2.