[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #56925] Functions to obtain effective reachability (AR
From: |
Simon Arlott |
Subject: |
[lwip-devel] [bug #56925] Functions to obtain effective reachability (ARP or NDP) status of an IP address |
Date: |
Fri, 20 Sep 2019 17:09:57 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
Follow-up Comment #1, bug #56925 (project lwip):
This is what I'm currently doing to check reachability:
https://github.com/nomis/mcu-uuid-syslog/blob/f0e3b4eef0b76958c769b8f32baff2c928c9135c/src/syslog.cpp#L290
(Ignore the IPv6 "have_address" check, I know it's not strictly correct.)
For IPv4, I'm retrying ARP requests more frequently than lwIP would.
For IPv6, the call to nd6_get_next_hop_addr_or_queue() will be returning an
error when it tries to queue the packet because the buffer is NULL.
A simple reachability check function would avoid these problems.
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?56925>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/