The rmh module implements a multihop forwarding mechanism.
Routes must have already been setup with the route_add() function. Setting up routes is done with another Rime module such as the route-discovery module.
The hop-by-hop reliable multi-hop unciast primitive is similar to the best-effot multi-hop unicast primitive except that it uses the reliable single-hop primitive for the communication between two single-hop neighbors.
Channels
The rmh module uses 1 channel.
|
file | rmh.h |
| Multihop forwarding header file
|
|
Value:{ PACKET_ADDR_ESENDER, PACKET_ADDRSIZE }, \
{ PACKET_ADDR_ERECEIVER, PACKET_ADDRSIZE }, \
{ PACKET_ATTR_TTL, PACKET_ATTR_BIT * 5 }, \
{ PACKET_ATTR_MAX_REXMIT, PACKET_ATTR_BIT * 5 }, \
RUC_ATTRIBUTES
int rmh_send |
( |
struct rmh_conn * |
c, |
|
|
linkaddr_t * |
to, |
|
|
uint8_t |
num_rexmit, |
|
|
uint8_t |
max_hops |
|
) |
| |