Solaris Bandwidth Manager 1.6 Developer Guide

ba_get_num_interfaces()

Name

ba_get_num_interfaces() -- retrieve the number of managed interfaces

Synopsis

#include <netinet/ba_stat.h>

int ba_get_num_interfaces();

Description

The function ba_get_num_interfaces() retrieves the total number of interfaces that the policy agent has been configured to manage.

Returns

The function ba_get_num_interfaces() returns the number of interfaces on success, and -1 on error.

Errors

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.