ba_get_num_interfaces() -- retrieve the number of managed interfaces
#include <netinet/ba_stat.h> int ba_get_num_interfaces();
The function ba_get_num_interfaces() retrieves the total number of interfaces that the policy agent has been configured to manage.
The function ba_get_num_interfaces() returns the number of interfaces on success, and -1 on error.
If an error occurs during a call to ba_get_num_interfaces(), the variable ba_errno is set to one of the error codes listed in Table 4-2.