|
|
|
|
/home/brennan/n-sim/Vaike/linux/system-addons/networking/mesh_neighbor.h File ReferenceWSN mesh network routing neighbors. More...
#include <netinet/in.h>
#include "sensor_self.h"
#include "mesh_ipc.h"
Go to the source code of this file.
|
Classes |
struct | _neighbor_entry |
Defines |
#define | MESH_N_COMM_PORT 1010 |
Typedefs |
typedef _neighbor_entry | neighbor_entry_t |
Functions |
void | init_n_entry (self_t *self, neighbor_entry_t *entry) |
neighbor_entry_t * | new_n_entry (self_t *self) |
int | add_n_entry (self_t *self, unsigned int id, neighbor_entry_t *entry) |
int | remove_n_entry (self_t *self, unsigned int id, neighbor_entry_t *entry) |
neighbor_entry_t * | retrieve_n_entry (self_t *self, unsigned int id) |
neighbor_entry_t * | iterate_n_entries (self_t *self) |
unsigned int | num_n_entries (self_t *self) |
void | empty_n_entries (self_t *self) |
int | neighbor_address (self_t *self, char *addr, double bearing, double distance) |
int | neighbor_position (self_t *self, double *bearing, double *distance, char *addr) |
neighbor_entry_t * | neighbor_by_position (self_t *self, double bearing, double distance) |
neighbor_entry_t * | neighbor_by_ip (self_t *self, struct sockaddr_in *ip) |
int | find_neighbors (self_t *self) |
int | neighbor_discovery (self_t *self) |
Detailed Description
WSN mesh network routing neighbors.
- 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:49
Definition in file mesh_neighbor.h.
Define Documentation
#define MESH_N_COMM_PORT 1010 |
|
Typedef Documentation
Function Documentation
void empty_n_entries |
( |
self_t * |
self |
) |
|
|
int find_neighbors |
( |
self_t * |
self |
) |
|
|
|
Definition at line 200 of file mesh_neighbor.c.
References _self::altitude, _self::broadcast, he, HELLO_LEN, _self::interface, _self::latitude, _self::longitude, _self::mac_addr, MESH_N_DISCOVERY_PORT, mesh_sendmsg(), and mesh_socket().
Referenced by neighbor_discovery(). |
int neighbor_address |
( |
self_t * |
self, |
|
|
char * |
addr, |
|
|
double |
bearing, |
|
|
double |
distance |
|
) |
|
|
int neighbor_discovery |
( |
self_t * |
self |
) |
|
|
|
Definition at line 273 of file mesh_neighbor.c.
References add_n_entry(), _self::altitude, error, find_neighbors(), HELLO_INTERVAL, HELLO_LEN, _self::interface, _self::latitude, _self::longitude, mac_to_id(), memcpy, MESH_N_COMM_PORT, MESH_N_DISCOVERY_PORT, mesh_socket(), new_n_entry(), and timed_recv().
Referenced by discover_neighbors(). |
int neighbor_position |
( |
self_t * |
self, |
|
|
double * |
bearing, |
|
|
double * |
distance, |
|
|
char * |
addr |
|
) |
|
|
unsigned int num_n_entries |
( |
self_t * |
self |
) |
|
|
|