From 63ac4d2a3d10fe417d52f3093719eb3366325f44 Mon Sep 17 00:00:00 2001 From: Laurent Deru Date: Fri, 13 Jan 2017 14:42:08 +0100 Subject: [PATCH] Adding uip_ds6_defrt_head() --- core/net/ipv6/uip-ds6-route.c | 6 ++++++ core/net/ipv6/uip-ds6-route.h | 1 + 2 files changed, 7 insertions(+) diff --git a/core/net/ipv6/uip-ds6-route.c b/core/net/ipv6/uip-ds6-route.c index bb7b7b18e..301213973 100644 --- a/core/net/ipv6/uip-ds6-route.c +++ b/core/net/ipv6/uip-ds6-route.c @@ -573,6 +573,12 @@ uip_ds6_route_rm_by_nexthop(uip_ipaddr_t *nexthop) } /*---------------------------------------------------------------------------*/ 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_t *d; diff --git a/core/net/ipv6/uip-ds6-route.h b/core/net/ipv6/uip-ds6-route.h index d6f88e943..147385186 100644 --- a/core/net/ipv6/uip-ds6-route.h +++ b/core/net/ipv6/uip-ds6-route.h @@ -177,6 +177,7 @@ typedef struct uip_ds6_defrt { /** \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, unsigned long interval); void uip_ds6_defrt_rm(uip_ds6_defrt_t *defrt);