nd6: use default_router_list internally only

This patch rearranges the code division between nd6.c and ip6.c such
that the latter does not need to access ND6-internal data structures
(specifically, "default_router_list") directly anymore.
This commit is contained in:
David van Moolenbroek
2016-12-14 13:59:08 +00:00
committed by sg
parent cee59ba8cd
commit 06ff89cbe4
3 changed files with 29 additions and 10 deletions

View File

@@ -143,7 +143,7 @@ void nd6_tmr(void);
void nd6_input(struct pbuf *p, struct netif *inp);
void nd6_clear_destination_cache(void);
s8_t nd6_get_next_hop_entry(const ip6_addr_t *ip6addr, struct netif *netif);
s8_t nd6_select_router(const ip6_addr_t *ip6addr, struct netif *netif);
struct netif *nd6_find_route(const ip6_addr_t *ip6addr);
u16_t nd6_get_destination_mtu(const ip6_addr_t *ip6addr, struct netif *netif);
err_t nd6_queue_packet(s8_t neighbor_index, struct pbuf *p);
#if LWIP_ND6_TCP_REACHABILITY_HINTS