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

WSN mesh network routing. More...

#include <string.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <net/route.h>
#include <arpa/inet.h>
#include <syslog.h>
#include "mesh_link.h"

Go to the source code of this file.

Functions

void link_entry_to_rtentry (link_entry_t *entry, struct rtentry *rt)
int add_kernel_route (link_entry_t *entry)
int remove_kernel_route (link_entry_t *entry)


Detailed Description

WSN mesh network routing.

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

Definition in file mesh_route.c.


Function Documentation

int add_kernel_route link_entry_t entry  ) 
 

Definition at line 87 of file mesh_route.c.

References error, and link_entry_to_rtentry().

Referenced by strength_send_mesh_discovery().

void link_entry_to_rtentry link_entry_t entry,
struct rtentry *  rt
 

Definition at line 46 of file mesh_route.c.

References _link_entry::iface, _link_entry::link, link_to_string(), memcpy, MESH_LINK_STRLEN, NET_ADDR_LEN, link_t::next_hop, _link_entry::nmask, and link_t::node.

Referenced by add_kernel_route(), and remove_kernel_route().

int remove_kernel_route link_entry_t entry  ) 
 

Definition at line 103 of file mesh_route.c.

References error, and link_entry_to_rtentry().

Referenced by strength_send_mesh_discovery().


© 2007, Los Alamos National Security, LLC.