/home/tai/chorist/xian-1.2/src/include/usei-log.h File Reference

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_devnew_net_dev (char *dev_name)
 This function allows to create a new local network device.
struct net_devlookup_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 nodenew_node (char *mac_addr)
 This function allows to create a new node.
struct nodelookup_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_lognew_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_loglookup_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_devnet_dev_list


Define Documentation

#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().


Function Documentation

struct net_dev* new_net_dev ( char *  dev_name  )  [read]

This function allows to create a new local network device.

Parameters:
dev_name local network device name
Returns:
net_dev a pointer to a new created local network device

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().

struct net_dev* lookup_net_dev ( char *  dev_name,
struct net_dev list 
) [read]

This function allows to lookup a local network device from Local Network Devices List in function of device name.

Parameters:
dev_name local network device name
list Local Network Devices List
Returns:
net_dev a pointer to local network device name if found, NULL otherwise

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().

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.

Parameters:
entry a pointer to new local network device
list Local Network Devices List
Returns:
-

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.

Parameters:
list Local Network Devices List
Returns:
-

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.

Parameters:
mac_addr Remote node Mac address formatted as follow XX:XX:XX:XX:XX:XX
Returns:
node a pointer to the new created node

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().

struct node* lookup_node ( char *  mac_addr,
struct node list 
) [read]

This function allows to lookup a node from Nodes List in function of its mac address.

Parameters:
mac_addr mac address of node to look up, formatted as follow XX:XX:XX:XX:XX:XX
list Nodes List
Returns:
node a pointer to node if found, NULL otherwise

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().

void add_node ( struct node entry,
struct node **  list 
)

This function allows to add a new node into Nodes List.

Parameters:
entry a pointer to new node to add
list Node List
Returns:
-

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.

Parameters:
list Nodes List
Returns:
-

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.

Parameters:
id_metric metric type
Returns:
metric_log a pointer to the new created 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.

Parameters:
entry a pointer to new metric type to add
list Metrics Types List
Returns:
-

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.

Parameters:
id_metric metric type id
list Metrics Types List
Returns:
metrics_log a pointer to metric type if found, NULL otherwise

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.

Parameters:
list Metrics Types List
Returns:
-

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.

Parameters:
value new metric value to add
tab list Log Values Metrics Array
Returns:
-

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().


Variable Documentation

struct net_dev* net_dev_list

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().


Generated on Mon Jan 21 12:31:47 2008 for XIAN by  doxygen 1.5.3