41 #ifndef __UAODV_DEF_H__
42 #define __UAODV_DEF_H__
46 #define NUM_PRECURSORS 4
49 #define UAODV_UDPPORT 654
53 struct uaodv_rtentry {
71 #define UAODV_RREQ_TYPE 1
72 #define UAODV_RREQ_JOIN (1 << 7)
73 #define UAODV_RREQ_REPAIR (1 << 6)
74 #define UAODV_RREQ_GRATIOUS (1 << 5)
75 #define UAODV_RREQ_DESTONLY (1 << 4)
76 #define UAODV_RREQ_UNKSEQNO (1 << 3)
78 struct uaodv_msg_rreq {
91 #define UAODV_RREP_TYPE 2
92 #define UAODV_RREP_REPAIR (1 << 7)
93 #define UAODV_RREP_ACK (1 << 6)
95 struct uaodv_msg_rrep {
107 #define UAODV_RERR_TYPE 3
108 #define UAODV_RERR_NODELETE (1 << 7)
109 #define UAODV_RERR_UNKNOWN (1 << 6)
111 struct uaodv_msg_rerr {
123 #define UAODV_RREP_ACK_TYPE 4
125 struct uaodv_msg_rrep_ack {
130 #define RREP_HELLO_INTERVAL_EXT 1
131 #define RREQ_BAD_HOP_EXT 101
133 struct uaodv_extension {
139 struct uaodv_bad_hop_ext {
142 u8_t unused1, unused2;