|
|
|
|
/home/brennan/n-sim/Vaike/linux/system-addons/networking/mesh_metrics.h File ReferenceWSN mesh network routing user metrics. More...
Go to the source code of this file.
Detailed Description
WSN mesh network routing user metrics.
- Revision
- 1.1
Original Author: Sean M. Brennan <brennan@lanl.gov> - Author
- sean_m_brennan
Created: August 1, 2007 - Date
- 2008/02/03 22:00:48
Definition in file mesh_metrics.h.
Define Documentation
#define MESH_METRICS_INTERVAL 180 |
|
#define MESH_METRICS_PACKETS 10 |
|
#define MESH_METRICS_PORT 1009 |
|
#define MESH_METRICS_ROUND 3 |
|
Enumeration Type Documentation
|
- Enumerator:
-
RELIABILITY |
|
GOODPUT |
|
ENERGY |
|
Definition at line 50 of file mesh_metrics.h. |
Function Documentation
|
Definition at line 80 of file mesh_metrics.c.
References metric_t::energy, ENERGY, metric_t::goodput, GOODPUT, link_t::hop_count, ip_to_id(), _link_entry::link, _link_entry::metrics, metric_t::reliability, RELIABILITY, and retrieve_entry(). |
int echo_statistics |
( |
struct _self * |
self |
) |
|
|
int gather_statistics |
( |
struct _self * |
self |
) |
|
|
|
Definition at line 174 of file mesh_metrics.c.
References _self::battery_enabled, error, get_discharge_rate(), _self::interface, ip_to_id(), MESH_METRICS_INTERVAL, MESH_METRICS_PACKETS, MESH_METRICS_PORT, MESH_METRICS_ROUND, retrieve_entry(), their_addr, and timed_recv().
Referenced by run_statistics(). |
void init_metrics |
( |
metric_t * |
metrics |
) |
|
|
int metric_by_name |
( |
char * |
name |
) |
|
|
|