Solaris Bandwidth Manager 1.6 の開発

ba_list_interface_config()

名前

ba_list_interface_config() - 管理されているすべてのインタフェースの設定情報を取得します。

形式

#include <netinet/ba_stat.h>

int ba_list_interface_config(
	 ba_interface_t *interfaces /*interface information*/
);

説明

ba_list_interface_config() 関数は、管理されているすべてのインタフェースの設定情報を取得します。

引数

ba_interface_t 型の構造体は次のように定義されています。


typedef struct {
	ba_name_t					name_suffix;
	uint_t					activate;
	uint_t					rate;
} ba_interface_t;

name_suffix は、インタフェースが着信トラフィックを処理することを示す in、または発信トラフィックを処理することを示す out のどちらかです。

バッファーには、常にインタフェースの数に応じた十分なメモリーを割り当てる必要があります。

戻り値

ba_list_interface_config() 関数は、正常に終了した場合には 0、エラー時には -1 を返します。

エラー

ba_list_interface_config() 呼び出しの際にエラーが発生すると、変数 ba_errno表 4-2 に示したエラーコードの 1 つに設定されます。