Microchip® Advanced Software Framework

uaodv-rt.c File Reference

    Routing tables for the micro implementation of the AODV ad hoc routing protocol
Author
Adam Dunkels adam@.nosp@m.sics.nosp@m..se
#include "net/ipv4/uaodv-rt.h"
#include "contiki-net.h"

Macros

#define UAODV_NUM_RT_ENTRIES   8
 

Functions

 LIST (route_table)
 
 MEMB (route_mem, struct uaodv_rt_entry, UAODV_NUM_RT_ENTRIES)
 
struct uaodv_rt_entryuaodv_rt_add (uip_ipaddr_t *dest, uip_ipaddr_t *nexthop, unsigned hop_count, const uint32_t *seqno)
 
void uaodv_rt_flush_all (void)
 
void uaodv_rt_init (void)
 
struct uaodv_rt_entryuaodv_rt_lookup (uip_ipaddr_t *dest)
 
struct uaodv_rt_entryuaodv_rt_lookup_any (uip_ipaddr_t *dest)
 
void uaodv_rt_lru (struct uaodv_rt_entry *e)
 

#define UAODV_NUM_RT_ENTRIES   8

LIST ( route_table  )
MEMB ( route_mem  ,
struct uaodv_rt_entry  ,
UAODV_NUM_RT_ENTRIES   
)
void uaodv_rt_flush_all ( void  )

References list_pop(), memb_free(), and NULL.

Referenced by PROCESS_THREAD().

void uaodv_rt_init ( void  )

References list_init(), and memb_init().

void uaodv_rt_lru ( struct uaodv_rt_entry e)