Solaris Bandwidth Manager 1.6 Developer Guide

ba_reset_class_stats()

Name

ba_reset_class_stats() -- reset statistics for a given class

Synopsis

#include <netinet/ba_stat.h>

int ba_reset_class_stats (
	const char *interface,
	const char *classname
);

Description

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.

Arguments

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. 

Returns

The function ba_reset_class_stats() returns 0 on success, and -1 on error.

Errors

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.