btnut/btnode/include/cc/routing.h File Reference


Detailed Description

Generic Chipcon CC1000 Routing-Interface.

Author:
Florian Schuetz <fschuetz@ethz.ch>

#include <sys/types.h>
#include <sys/mutex.h>

Data Structures

struct  routing_interface_st

Defines

#define BROKEN_LINK   6
 Message, which reports a broken link to a next hop on a path to a destination.
#define BROKEN_ROUTE   7
 Message, which reports a route that is no longer available but other nodes still use.
#define DESTINATION_UNREACHABLE   2
 Message, which means requested destination is unreachable.
#define DISCOVERY_FAILED   4
 Message, which means that a route discovery failed.
#define DISCOVERY_IN_PROGRESS   7
 Message, which means that a route discovery for a given destination is already in progress.
#define DISCOVERY_STARTED   3
 Message, which means that a route discovery was started.
#define PENDING   1
 State for packet that is waiting for processing.
#define ROUTE_AVAILABLE   5
 Message, which means that a route discovery was successfull and a route for a given destination is available.
#define ROUTING_DEBUG(str,...)   {}
 Use this to print debug output.
#define ROUTING_DEBUG_INIT   {}
 MUST be used to initialize ROUTING_DEBUG(...).

Typedefs

typedef routing_interface_st routing_interface_t
typedef void(*) routing_message_handler_t (u_short destination, u_short message)


Define Documentation

#define ROUTING_DEBUG_INIT   {}

MUST be used to initialize ROUTING_DEBUG(...).

Warning:
Always do this before using ROUTING_DEBUG(...)


Typedef Documentation

typedef struct routing_interface_st routing_interface_t

Structure describing the Routing-Interface.

This structure enables the RoutingForChipcon-layer to communicate with an arbitrary routing protocol, that exports this interface.

typedef void(*) routing_message_handler_t(u_short destination, u_short message)

Defines the message handler, through wich the routing protocol may send Messages to the RoutingForChipcon layer.


Generated on Wed Apr 29 11:12:29 2009 for BTnut System Software by doxygen 1.5.1