mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-22 16:16:55 +08:00
nd6: centralize link-local packet send decision
Previously, ethip6 and lowpan6 each had their own copy of code that used internal nd6 data structures to decide whether to send a packet on the local link right away, or queue it while nd6 performed local address resolution. This patch moves that code into nd6, thereby eliminating all remaining cases of external access to internal nd6 data structures, as well as the need to expose two specific nd6 functions. As a side effect, the patch effectively fixes two bugs in the lowpan6 code that were already fixed in the ethip6 code.
This commit is contained in:
committed by
sg
parent
06ff89cbe4
commit
69a7039f75
@@ -142,10 +142,9 @@ extern u32_t retrans_timer;
|
||||
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);
|
||||
struct netif *nd6_find_route(const ip6_addr_t *ip6addr);
|
||||
err_t nd6_packet_send_check(struct netif *netif, struct pbuf *q, const ip6_addr_t *ip6addr, const u8_t **hwaddrp);
|
||||
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
|
||||
void nd6_reachability_hint(const ip6_addr_t *ip6addr);
|
||||
#endif /* LWIP_ND6_TCP_REACHABILITY_HINTS */
|
||||
|
||||
Reference in New Issue
Block a user