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_ipc.h File Reference

Facilities to control WSN mesh network routing daemon. More...

Go to the source code of this file.

Defines

#define MESH_LIBRARY   "libsensormesh"
#define p_error(k, f)
#define h_error(k, f)
#define MESH_CONTROL_PORT   1007
#define MESH_IOREDISCVR   0x8300
#define MESH_IOGSNDQ   0x8301
#define MESH_IOSSNDQ   0x8302
#define MESH_IOGMTU   0x8303
#define MESH_IOSMTU   0x8304
#define MESH_IOGSNDTMO   0x8305
#define MESH_IOSSNDTMO   0x8306
#define MESH_IOGRTMTR   0x8307
#define MESH_IOGLNKMTR   0x8308
#define MESH_IOGNGHADDR   0x8309
#define MESH_IOGNGHPOS   0x8310
#define MESH_IOSOCKET   0x8311
#define MESH_IOSENDSEQ   0x8312
#define MESH_IORECVSEQ   0x8313
#define MESH_IOSENDRAW   0x8314
#define MESH_IORECVRAW   0x8315
#define MESH_IOSENDNEAR   0x8316
#define MESH_IORECVNEAR   0x8317

Functions

int mesh_ipc_init (void)
int mesh_ioctl (int request,...)


Detailed Description

Facilities to control WSN mesh network routing daemon.

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

Definition in file mesh_ipc.h.


Define Documentation

#define h_error k,
f   ) 
 

Value:

do {                            \
    fprintf(stderr, "%s  %s: %s: %s.\n",                \
            MESH_LIBRARY, k, f, hstrerror(h_errno));    \
  } while (0);

Definition at line 57 of file mesh_ipc.h.

Referenced by mesh_ipc_init().

#define MESH_CONTROL_PORT   1007
 

Definition at line 64 of file mesh_ipc.h.

Referenced by mesh_ipc_init().

#define MESH_IOGLNKMTR   0x8308
 

Definition at line 77 of file mesh_ipc.h.

Referenced by mesh_ioctl(), mesh_link_energy(), mesh_link_goodput(), and mesh_link_reliability().

#define MESH_IOGMTU   0x8303
 

Definition at line 72 of file mesh_ipc.h.

Referenced by mesh_get_mtu(), and mesh_ioctl().

#define MESH_IOGNGHADDR   0x8309
 

Definition at line 78 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and neighbor_address().

#define MESH_IOGNGHPOS   0x8310
 

Definition at line 79 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and neighbor_position().

#define MESH_IOGRTMTR   0x8307
 

Definition at line 76 of file mesh_ipc.h.

Referenced by mesh_ioctl(), mesh_route_energy_cost(), mesh_route_goodput(), and mesh_route_reliability().

#define MESH_IOGSNDQ   0x8301
 

Definition at line 70 of file mesh_ipc.h.

Referenced by mesh_get_sendqueue(), and mesh_ioctl().

#define MESH_IOGSNDTMO   0x8305
 

Definition at line 74 of file mesh_ipc.h.

Referenced by mesh_get_resend_timeout(), mesh_ioctl(), and mesh_set_resend_timeout().

#define MESH_IORECVNEAR   0x8317
 

Definition at line 86 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_recvfrom_nextdoor().

#define MESH_IORECVRAW   0x8315
 

Definition at line 84 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_raw_recvfrom().

#define MESH_IORECVSEQ   0x8313
 

Definition at line 82 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_recvfrom().

#define MESH_IOREDISCVR   0x8300
 

We use a currently unassigned IANA port * http://www.iana.org/assignments/port-numbers

Definition at line 69 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_proactive_rediscover().

#define MESH_IOSENDNEAR   0x8316
 

Definition at line 85 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_sendto_nextdoor().

#define MESH_IOSENDRAW   0x8314
 

Definition at line 83 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_raw_sendto().

#define MESH_IOSENDSEQ   0x8312
 

Definition at line 81 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_sendto().

#define MESH_IOSMTU   0x8304
 

Definition at line 73 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_set_mtu().

#define MESH_IOSOCKET   0x8311
 

Definition at line 80 of file mesh_ipc.h.

Referenced by mesh_ioctl().

#define MESH_IOSSNDQ   0x8302
 

Definition at line 71 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_set_sendqueue().

#define MESH_IOSSNDTMO   0x8306
 

Definition at line 75 of file mesh_ipc.h.

Referenced by mesh_ioctl().

#define MESH_LIBRARY   "libsensormesh"
 

Definition at line 50 of file mesh_ipc.h.

#define p_error k,
f   ) 
 

Value:

do {                            \
    fprintf(stderr, "%s  %s: %s: %s.\n",                \
            MESH_LIBRARY, k, f, strerror(errno));       \
  } while (0);

Definition at line 52 of file mesh_ipc.h.

Referenced by mesh_ioctl(), and mesh_ipc_init().


Function Documentation

int mesh_ioctl int  request,
  ...
 

Definition at line 416 of file mesh_ipc.c.

References memcpy, MESH_HEADER_SPACE, MESH_IOGLNKMTR, MESH_IOGMTU, MESH_IOGNGHADDR, MESH_IOGNGHPOS, MESH_IOGRTMTR, MESH_IOGSNDQ, MESH_IOGSNDTMO, MESH_IORECVNEAR, MESH_IORECVRAW, MESH_IORECVSEQ, MESH_IOREDISCVR, MESH_IOSENDNEAR, MESH_IOSENDRAW, MESH_IOSENDSEQ, MESH_IOSMTU, MESH_IOSOCKET, MESH_IOSSNDQ, MESH_IOSSNDTMO, p_error, and port.

Referenced by mesh_get_mtu(), mesh_get_resend_timeout(), mesh_get_sendqueue(), mesh_link_energy(), mesh_link_goodput(), mesh_link_reliability(), mesh_proactive_rediscover(), mesh_raw_recvfrom(), mesh_raw_sendto(), mesh_recvfrom(), mesh_recvfrom_nextdoor(), mesh_route_energy_cost(), mesh_route_goodput(), mesh_route_reliability(), mesh_sendto(), mesh_sendto_nextdoor(), mesh_set_mtu(), mesh_set_resend_timeout(), mesh_set_sendqueue(), neighbor_address(), and neighbor_position().

int mesh_ipc_init void   ) 
 

Definition at line 336 of file mesh_ipc.c.

References h_error, he, MESH_CONTROL_PORT, p_error, and their_addr.


© 2007, Los Alamos National Security, LLC.