Microchip® Advanced Software Framework

uip-ds6-route.c File Reference
#include "net/ipv6/uip-ds6.h"
#include "net/ip/uip.h"
#include "lib/list.h"
#include "lib/memb.h"
#include "net/nbr-table.h"
#include <string.h>
#include "net/ip/uip-debug.h"

Macros

#define _DEBUG_   DEBUG_NONE
 

Functions

 LIST (routelist)
 
 LIST (defaultrouterlist)
 
 MEMB (neighborroutememb, struct uip_ds6_route_neighbor_route, UIP_DS6_ROUTE_NB)
 
 MEMB (routememb, uip_ds6_route_t, UIP_DS6_ROUTE_NB)
 
 MEMB (defaultroutermemb, uip_ds6_defrt_t, UIP_DS6_DEFRT_NB)
 
 NBR_TABLE (struct uip_ds6_route_neighbor_routes, nbr_routes)
 
static void rm_routelist (struct uip_ds6_route_neighbor_routes *routes)
 
static void rm_routelist_callback (nbr_table_item_t *ptr)
 
uip_ds6_defrt_tuip_ds6_defrt_add (uip_ipaddr_t *ipaddr, unsigned long interval)
 
uip_ipaddr_tuip_ds6_defrt_choose (void)
 
uip_ds6_defrt_tuip_ds6_defrt_lookup (uip_ipaddr_t *ipaddr)
 
void uip_ds6_defrt_periodic (void)
 
void uip_ds6_defrt_rm (uip_ds6_defrt_t *defrt)
 
uip_ds6_route_tuip_ds6_route_add (uip_ipaddr_t *ipaddr, uint8_t length, uip_ipaddr_t *nexthop)
 
uip_ds6_route_tuip_ds6_route_head (void)
 
void uip_ds6_route_init (void)
 
uip_ds6_route_tuip_ds6_route_lookup (uip_ipaddr_t *addr)
 
uip_ds6_route_tuip_ds6_route_next (uip_ds6_route_t *r)
 
uip_ipaddr_tuip_ds6_route_nexthop (uip_ds6_route_t *route)
 
static uip_lladdr_tuip_ds6_route_nexthop_lladdr (uip_ds6_route_t *route)
 
int uip_ds6_route_num_routes (void)
 
void uip_ds6_route_rm (uip_ds6_route_t *route)
 
void uip_ds6_route_rm_by_nexthop (uip_ipaddr_t *nexthop)
 

Variables

static int num_routes = 0
 

#define _DEBUG_   DEBUG_NONE

LIST ( routelist  )
LIST ( defaultrouterlist  )
MEMB ( neighborroutememb  ,
struct uip_ds6_route_neighbor_route  ,
UIP_DS6_ROUTE_NB   
)
MEMB ( routememb  ,
uip_ds6_route_t  ,
UIP_DS6_ROUTE_NB   
)
MEMB ( defaultroutermemb  ,
uip_ds6_defrt_t  ,
UIP_DS6_DEFRT_NB   
)
NBR_TABLE ( struct uip_ds6_route_neighbor_routes  ,
nbr_routes   
)
static void rm_routelist_callback ( nbr_table_item_t ptr)
static

References rm_routelist().

Referenced by uip_ds6_route_init().

void uip_ds6_route_init ( void  )
static uip_lladdr_t* uip_ds6_route_nexthop_lladdr ( uip_ds6_route_t route)
static
int uip_ds6_route_num_routes ( void  )

References num_routes.

Referenced by make_routes_roomfor(), and uip_ds6_route_add().

void uip_ds6_route_rm_by_nexthop ( uip_ipaddr_t nexthop)

int num_routes = 0
static