OpenWSN Firmware
|
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... | |
Forwarding engine.
#define RPL_HOPBYHOP_HEADER_OPTION_TYPE 0x63 |
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.
[in,out] | msg | The packet just sent. |
[in] | ipv6_header | The information contained in the IPv6 header. |
[in] | ipv6_hop_header | The hop-by-hop header present in the packet. |
[in] | rpl_option | The 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.
[in,out] | msg | Packet to send. |
void forwarding_sendDone | ( | OpenQueueEntry_t * | msg, |
owerror_t | error | ||
) |
Indicates a packet has been sent.
[in,out] | msg | The packet just sent. |
[in] | error | The outcome of sending it. |