Go to the source code of this file.
Data Structures | |
struct | metrics_log |
struct | node |
struct | net_dev |
Defines | |
#define | IFNAMESIZ 16 |
#define | IEEE80211_MAC_ADDR_LEN 17 |
#define | MAX_METRIC_VALUES 60 |
Functions | |
struct net_dev * | new_net_dev (char *dev_name) |
This function allows to create a new local network device. | |
struct net_dev * | lookup_net_dev (char *dev_name, struct net_dev *list) |
This function allows to lookup a local network device from Local Network Devices List in function of device name. | |
void | add_net_dev (struct net_dev *entry, struct net_dev **list) |
This function allows to add a new local network device into Local Network Devices List. | |
void | print_net_dev_list (struct net_dev *list) |
This function allows to print Local Network Devices List. | |
struct node * | new_node (char *mac_addr) |
This function allows to create a new node. | |
struct node * | lookup_node (char *mac_addr, struct node *list) |
This function allows to lookup a node from Nodes List in function of its mac address. | |
void | add_node (struct node *entry, struct node **list) |
This function allows to add a new node into Nodes List. | |
void | print_node_list (struct node *list) |
This function allows to print Nodes List. | |
struct metrics_log * | new_metric (unsigned int id_metric) |
This function allows to create a new metric type. | |
void | add_metric (struct metrics_log *entry, struct metrics_log **list) |
This function allows to add a new metric type into Metrics Types List. | |
struct metrics_log * | lookup_metric (unsigned int id_metric, struct metrics_log *list) |
This function allows to lookup a metric type from Metrics Types List in function of its id. | |
void | print_log_metrics_list (struct metrics_log *list) |
This function allows to print Metrics Types List. | |
void | set_new_value_metric (unsigned long long value, unsigned long long tab[]) |
This function allows to add a new metric value for a given metric type into a Log Values Metrics Array. | |
Variables | |
struct net_dev * | net_dev_list |
#define IFNAMESIZ 16 |
Definition at line 26 of file usei-log.h.
#define IEEE80211_MAC_ADDR_LEN 17 |
Definition at line 27 of file usei-log.h.
#define MAX_METRIC_VALUES 60 |
Definition at line 28 of file usei-log.h.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), new_metric(), print_log_metrics_list(), and set_new_value_metric().
struct net_dev* new_net_dev | ( | char * | dev_name | ) | [read] |
This function allows to create a new local network device.
dev_name | local network device name |
Definition at line 294 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
This function allows to lookup a local network device from Local Network Devices List in function of device name.
dev_name | local network device name | |
list | Local Network Devices List |
Definition at line 252 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
This function allows to add a new local network device into Local Network Devices List.
entry | a pointer to new local network device | |
list | Local Network Devices List |
Definition at line 235 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
void print_net_dev_list | ( | struct net_dev * | list | ) |
This function allows to print Local Network Devices List.
list | Local Network Devices List |
Definition at line 275 of file usei-log.c.
struct node* new_node | ( | char * | mac_addr | ) | [read] |
This function allows to create a new node.
mac_addr | Remote node Mac address formatted as follow XX:XX:XX:XX:XX:XX |
Definition at line 210 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
This function allows to lookup a node from Nodes List in function of its mac address.
mac_addr | mac address of node to look up, formatted as follow XX:XX:XX:XX:XX:XX | |
list | Nodes List |
Definition at line 171 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
This function allows to add a new node into Nodes List.
entry | a pointer to new node to add | |
list | Node List |
Definition at line 154 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
void print_node_list | ( | struct node * | list | ) |
This function allows to print Nodes List.
list | Nodes List |
Definition at line 191 of file usei-log.c.
Referenced by print_net_dev_list().
struct metrics_log* new_metric | ( | unsigned int | id_metric | ) | [read] |
This function allows to create a new metric type.
id_metric | metric type |
Definition at line 125 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
void add_metric | ( | struct metrics_log * | entry, | |
struct metrics_log ** | list | |||
) |
This function allows to add a new metric type into Metrics Types List.
entry | a pointer to new metric type to add | |
list | Metrics Types List |
Definition at line 64 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
struct metrics_log* lookup_metric | ( | unsigned int | id_metric, | |
struct metrics_log * | list | |||
) | [read] |
This function allows to lookup a metric type from Metrics Types List in function of its id.
id_metric | metric type id | |
list | Metrics Types List |
Definition at line 81 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
void print_log_metrics_list | ( | struct metrics_log * | list | ) |
This function allows to print Metrics Types List.
list | Metrics Types List |
Definition at line 102 of file usei-log.c.
Referenced by print_node_list().
void set_new_value_metric | ( | unsigned long long | value, | |
unsigned long long | tab[] | |||
) |
This function allows to add a new metric value for a given metric type into a Log Values Metrics Array.
value | new metric value to add | |
tab | list Log Values Metrics Array |
Definition at line 43 of file usei-log.c.
Referenced by get_node_avg_delta_occupancy(), get_node_avg_delta_tx_frame_with_no_ack(), get_node_avg_rssi(), get_node_avg_tx_failure_rate(), get_node_delta_occupancy(), get_node_delta_tx_err(), and get_node_delta_tx_trial().
struct net_dev* net_dev_list |