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_discovery.c File Reference

WSN mesh network routing mechanism. More...

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <sys/select.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/route.h>
#include <errno.h>
#include <syslog.h>
#include <netdb.h>
#include <pthread.h>
#include <sched.h>
#include "sensor_self.h"
#include "mesh_link.h"
#include "mesh_discovery.h"

Go to the source code of this file.

Functions

int propagate_routes (protocol_t *proto, int flags)
void * discover_network (void *arg)

Variables

pthread_mutex_t mesh_send_mutex = PTHREAD_MUTEX_INITIALIZER


Detailed Description

WSN mesh network routing mechanism.

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:44

Definition in file mesh_discovery.c.


Function Documentation

void* discover_network void *  arg  ) 
 

Definition at line 153 of file mesh_discovery.c.

Referenced by add_protocol().

int propagate_routes protocol_t proto,
int  flags
 

Definition at line 62 of file mesh_discovery.c.

References error, _self::interface, MESH_DISCOVERY_PORT, _protocol::mesh_route_send, mesh_send_mutex, mesh_socket(), _protocol::proactive, and _protocol::sensor.


Variable Documentation

pthread_mutex_t mesh_send_mutex = PTHREAD_MUTEX_INITIALIZER
 

Definition at line 58 of file mesh_discovery.c.

Referenced by propagate_routes().


© 2007, Los Alamos National Security, LLC.