43 #include "contiki-net.h"
45 #ifndef UAODV_NUM_RT_ENTRIES
46 #define UAODV_NUM_RT_ENTRIES 8
53 MEMB(route_mem,
struct uaodv_rt_entry, UAODV_NUM_RT_ENTRIES);
63 struct uaodv_rt_entry *
65 unsigned hop_count,
const u32_t *seqno)
67 struct uaodv_rt_entry *e;
70 e = uaodv_rt_lookup_any(dest);
83 e->hop_count = hop_count;
84 e->hseqno = uip_ntohl(*seqno);
93 struct uaodv_rt_entry *
96 struct uaodv_rt_entry *e;
106 struct uaodv_rt_entry *
109 struct uaodv_rt_entry *e;
111 e = uaodv_rt_lookup_any(dest);
112 if(e !=
NULL && e->is_bad)
119 uaodv_rt_remove(
struct uaodv_rt_entry *e)
127 uaodv_rt_lru(
struct uaodv_rt_entry *e)
136 uaodv_rt_flush_all(
void)
138 struct uaodv_rt_entry *e;