74 #define RMH_ATTRIBUTES { PACKET_ADDR_ESENDER, PACKET_ADDRSIZE }, \
75 { PACKET_ADDR_ERECEIVER, PACKET_ADDRSIZE }, \
76 { PACKET_ATTR_TTL, PACKET_ATTR_BIT * 5 }, \
77 { PACKET_ATTR_MAX_REXMIT, PACKET_ATTR_BIT * 5 }, \
80 struct rmh_callbacks {
81 void (* recv)(
struct rmh_conn *ptr, rimeaddr_t *sender, uint8_t hops);
82 rimeaddr_t *(* forward)(
struct rmh_conn *ptr,
83 const rimeaddr_t *originator,
84 const rimeaddr_t *dest,
85 const rimeaddr_t *prevhop,
90 struct runicast_conn c;
91 const struct rmh_callbacks *cb;
95 void rmh_open(
struct rmh_conn *c, uint16_t channel,
96 const struct rmh_callbacks *u);
97 void rmh_close(
struct rmh_conn *c);
98 int rmh_send(
struct rmh_conn *c, rimeaddr_t *to, uint8_t num_rexmit,