73 #define RMH_ATTRIBUTES { PACKET_ADDR_ESENDER, PACKET_ADDRSIZE }, \
74 { PACKET_ADDR_ERECEIVER, PACKET_ADDRSIZE }, \
75 { PACKET_ATTR_TTL, PACKET_ATTR_BIT * 5 }, \
76 { PACKET_ATTR_MAX_REXMIT, PACKET_ATTR_BIT * 5 }, \
79 struct rmh_callbacks {
80 void (* recv)(
struct rmh_conn *ptr, linkaddr_t *sender, uint8_t hops);
81 linkaddr_t *(* forward)(
struct rmh_conn *ptr,
82 const linkaddr_t *originator,
83 const linkaddr_t *dest,
84 const linkaddr_t *prevhop,
89 struct runicast_conn c;
90 const struct rmh_callbacks *cb;
94 void rmh_open(
struct rmh_conn *c, uint16_t channel,
95 const struct rmh_callbacks *u);
96 void rmh_close(
struct rmh_conn *c);
97 int rmh_send(
struct rmh_conn *c, linkaddr_t *to, uint8_t num_rexmit,
Reliable unicast header file
Header file for the Rime address representation