Merge pull request #2062 from cetic/pr-add-defrt_list_head
Adding uip_ds6_defrt_list_head()
This commit is contained in:
commit
f80f673e21
|
@ -573,6 +573,12 @@ uip_ds6_route_rm_by_nexthop(uip_ipaddr_t *nexthop)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
uip_ds6_defrt_t *
|
uip_ds6_defrt_t *
|
||||||
|
uip_ds6_defrt_head(void)
|
||||||
|
{
|
||||||
|
return list_head(defaultrouterlist);
|
||||||
|
}
|
||||||
|
/*---------------------------------------------------------------------------*/
|
||||||
|
uip_ds6_defrt_t *
|
||||||
uip_ds6_defrt_add(uip_ipaddr_t *ipaddr, unsigned long interval)
|
uip_ds6_defrt_add(uip_ipaddr_t *ipaddr, unsigned long interval)
|
||||||
{
|
{
|
||||||
uip_ds6_defrt_t *d;
|
uip_ds6_defrt_t *d;
|
||||||
|
|
|
@ -177,6 +177,7 @@ typedef struct uip_ds6_defrt {
|
||||||
|
|
||||||
/** \name Default router list basic routines */
|
/** \name Default router list basic routines */
|
||||||
/** @{ */
|
/** @{ */
|
||||||
|
uip_ds6_defrt_t *uip_ds6_defrt_head(void);
|
||||||
uip_ds6_defrt_t *uip_ds6_defrt_add(uip_ipaddr_t *ipaddr,
|
uip_ds6_defrt_t *uip_ds6_defrt_add(uip_ipaddr_t *ipaddr,
|
||||||
unsigned long interval);
|
unsigned long interval);
|
||||||
void uip_ds6_defrt_rm(uip_ds6_defrt_t *defrt);
|
void uip_ds6_defrt_rm(uip_ds6_defrt_t *defrt);
|
||||||
|
|
Loading…
Reference in a new issue