OpenWSN Firmware
Forwarding

Forwarding engine. More...

Data Structures

struct  rpl_routing_ht
 RPL source routing header. More...
 

Macros

#define RPL_HOPBYHOP_HEADER_OPTION_TYPE   0x63
 

Enumerations

enum  { PCKTFORWARD = 1, PCKTSEND = 2 }
 
enum  { O_FLAG = 0x80, R_FLAG = 0x40, F_FLAG = 0x20 }
 

Functions

END_PACK void forwarding_init (void)
 Initialize this module. More...
 
owerror_t forwarding_send (OpenQueueEntry_t *msg)
 Send a packet originating at this mote. More...
 
void forwarding_sendDone (OpenQueueEntry_t *msg, owerror_t error)
 Indicates a packet has been sent. More...
 
void forwarding_receive (OpenQueueEntry_t *msg, ipv6_header_iht *ipv6_header, ipv6_hopbyhop_iht *ipv6_hop_header, rpl_option_ht *rpl_option)
 Indicates a packet was received. More...
 

Detailed Description

Forwarding engine.

Author
Thomas Watteyne watte.nosp@m.yne@.nosp@m.eecs..nosp@m.berk.nosp@m.eley..nosp@m.edu, August 2010

Macro Definition Documentation

#define RPL_HOPBYHOP_HEADER_OPTION_TYPE   0x63

Enumeration Type Documentation

anonymous enum
Enumerator
PCKTFORWARD 
PCKTSEND 
anonymous enum
Enumerator
O_FLAG 
R_FLAG 
F_FLAG 

Function Documentation

END_PACK void forwarding_init ( void  )

Initialize this module.

void forwarding_receive ( OpenQueueEntry_t msg,
ipv6_header_iht ipv6_header,
ipv6_hopbyhop_iht ipv6_hop_header,
rpl_option_ht rpl_option 
)

Indicates a packet was received.

Parameters
[in,out]msgThe packet just sent.
[in]ipv6_headerThe information contained in the IPv6 header.
[in]ipv6_hop_headerThe hop-by-hop header present in the packet.
[in]rpl_optionThe hop-by-hop options present in the packet.
owerror_t forwarding_send ( OpenQueueEntry_t msg)

Send a packet originating at this mote.

This function is called by an upper layer, and only concerns packets originated at this mote.

Parameters
[in,out]msgPacket to send.
void forwarding_sendDone ( OpenQueueEntry_t msg,
owerror_t  error 
)

Indicates a packet has been sent.

Parameters
[in,out]msgThe packet just sent.
[in]errorThe outcome of sending it.