The User Space XIAN Extended API provides some extended metrics based on madwifi metrics.
Copyright (C) 2006 THALES Communications
This file is part of XIAN software.
XIAN is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.
XIAN software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with XIAN software; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file usei.c.
#include <stdlib.h>
#include <stdio.h>
#include "include/usi.h"
#include "include/usei.h"
Go to the source code of this file.
Functions | |
unsigned long long | get_node_delta_occupancy (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get a delta occupancy of a link [local node, remote node defined by its Mac @]. | |
unsigned long long | get_node_avg_delta_occupancy (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get an average delta occupancy of a link [local node, remote node defined by its Mac @]. | |
unsigned long long | get_node_avg_rssi (char *macadd, char *dev_name, unsigned int *code_err) |
unsigned long long | get_node_avg_delta_tx_frame_with_no_ack (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get an average delta tx frame count with no ack of a link [local node, remote node defined by its Mac @]. | |
unsigned long long | get_node_delta_tx_trial (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get a delta on_tx_ok of a link [local node, remote node defined by its Mac @]. | |
unsigned long long | get_node_delta_tx_err (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get a delta on_tx_err of a link [local node, remote node defined by its Mac @]. | |
unsigned long long | get_node_tx_failure_rate (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get tx failure rate of a link [local node, remote node defined by its Mac @]. | |
unsigned long long | get_node_avg_tx_failure_rate (char *macadd, char *dev_name, unsigned int *code_err) |
This function allows to get avg tx failure rate of a link [local node, remote node defined by its Mac @]. |
unsigned long long get_node_delta_occupancy | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get a delta occupancy of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 42 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_rx_bytes(), get_node_tx_bytes(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), net_dev_list, new_metric(), new_net_dev(), new_node(), OCCUPANCY, and set_new_value_metric().
unsigned long long get_node_avg_delta_occupancy | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get an average delta occupancy of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 118 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_rx_bytes(), get_node_tx_bytes(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), MAX_METRIC_VALUES, net_dev_list, new_metric(), new_net_dev(), new_node(), OCCUPANCY, and set_new_value_metric().
unsigned long long get_node_avg_rssi | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
Definition at line 202 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_rssi(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), MAX_METRIC_VALUES, net_dev_list, new_metric(), new_net_dev(), new_node(), RSSI, and set_new_value_metric().
unsigned long long get_node_avg_delta_tx_frame_with_no_ack | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get an average delta tx frame count with no ack of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 275 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_on_tx_err(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), MAX_METRIC_VALUES, net_dev_list, new_metric(), new_net_dev(), new_node(), set_new_value_metric(), and TX_FRAME_WITH_NO_ACK.
unsigned long long get_node_delta_tx_trial | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get a delta on_tx_ok of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 347 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_on_tx_err(), get_node_on_tx_ok(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), net_dev_list, new_metric(), new_net_dev(), new_node(), set_new_value_metric(), and TX_TRIAL.
unsigned long long get_node_delta_tx_err | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get a delta on_tx_err of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 408 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_on_tx_err(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), net_dev_list, new_metric(), new_net_dev(), new_node(), set_new_value_metric(), and TX_ERR.
unsigned long long get_node_tx_failure_rate | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get tx failure rate of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 465 of file usei.c.
References get_node_delta_tx_err(), and get_node_delta_tx_trial().
unsigned long long get_node_avg_tx_failure_rate | ( | char * | macadd, | |
char * | dev_name, | |||
unsigned int * | code_err | |||
) |
This function allows to get avg tx failure rate of a link [local node, remote node defined by its Mac @].
macadd | MAC Address of a specified node formatted as follow XX:XX:XX:XX:XX:XX | |
dev_name | name of the network interface | |
code_err | output a code error if an error occurs. |
Definition at line 497 of file usei.c.
References add_metric(), add_net_dev(), add_node(), get_node_tx_failure_rate(), metrics_log::last_values, node::list_metric_log, net_dev::list_node, lookup_metric(), lookup_net_dev(), lookup_node(), MAX_METRIC_VALUES, net_dev_list, new_metric(), new_net_dev(), new_node(), set_new_value_metric(), and TX_FAILURE_RATE.