N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

/home/brennan/n-sim/Vaike/linux/system-addons/networking/mesh_strength.c File Reference

WSN mesh network routing mechanism - best signal strength. More...

#include <stdio.h>
#include <netdb.h>
#include <syslog.h>
#include "mesh_strength.h"

Go to the source code of this file.

Enumerations

enum  metric_index { min_signal = 0 }

Functions

void strength_on_demand_discovery (protocol_t *proto, u_int32_t dest)
int strength_send_mesh_discovery (protocol_t *proto, int sd, int flags)
int strength_recv_mesh_discovery (protocol_t *proto, int sd, int num_links)


Detailed Description

WSN mesh network routing mechanism - best signal strength.

Revision
1.2

Original Author: Sean M. Brennan <brennan@lanl.gov>

Author
sean_m_brennan

Created: August 1, 2007

Date
2008/02/05 19:14:30

Definition in file mesh_strength.c.


Enumeration Type Documentation

enum metric_index
 

Enumerator:
min_signal 

Definition at line 42 of file mesh_strength.c.


Function Documentation

void strength_on_demand_discovery protocol_t proto,
u_int32_t  dest
 

Definition at line 45 of file mesh_strength.c.

int strength_recv_mesh_discovery protocol_t proto,
int  sd,
int  num_links
 

Definition at line 147 of file mesh_strength.c.

References database_size(), max, min, noise_lvl, receive_routes(), and signal_str.

int strength_send_mesh_discovery protocol_t proto,
int  sd,
int  flags
 

Definition at line 51 of file mesh_strength.c.

References add_kernel_route(), _self::broadcast, _protocol::db_altered, empty_entries(), error, he, ip_to_dot(), iterate_entries(), _link_entry::link, link_to_string(), _db::links, memcpy, MESH_DISCOVERY_PORT, MESH_LINK_STRLEN, MESH_REDISCOVER, NET_ADDR_LEN, new_database(), new_link_entry(), num_entries(), link_t::rediscover, remove_kernel_route(), and _protocol::sensor.


© 2007, Los Alamos National Security, LLC.