ba_reset_class_stats() -- reset statistics for a given class
#include <netinet/ba_stat.h> int ba_reset_class_stats ( const char *interface, const char *classname );
The function ba_reset_class_stats() resets the statistics information for a given class and all its child classes. This function may only be called by a privileged process.
The function ba_reset_class_stats() is passed the following arguments:
|
interface |
Pointer to a character string that contains the name of the managed interface (for example, le0, or hme0). |
|
classname |
Pointer to a character string that contains the class name. |
The function ba_reset_class_stats() returns 0 on success, and -1 on error.
If an error occurs during a call to ba_reset_class_stats(), the variable ba_errno is set to one of the error codes listed in Table 4-2.