raiden00pl opened a new pull request, #21877:
URL: https://github.com/apache/nuttx/pull/21877

   ## Summary
   
   The callers of arp_send() and icmpv6_neighbor() turned every error into
   ENETUNREACH, so a host on the local network that never answers ARP or
   Neighbor Solicitation was reported as having no route. Both functions now
   return EHOSTUNREACH when the resolution fails and ENETUNREACH when no device
   or router reaches the address, and the socket calls pass the error on.
   
   POSIX connect(): "[ENETUNREACH] No route to the network is present."
   "[EHOSTUNREACH] The destination host cannot be reached (probably because the
   host is down or a remote router cannot reach it)."
   
   ## Impact
   
   connect(), sendto() and ICMP/ICMPv6 sends to an unreachable neighbour fail
   with EHOSTUNREACH instead of ENETUNREACH. No change when there is no route.
   
   ## Testing
   
   qemu-armv8a, two nodes + host: connect() and send to an unused address on
   the local IPv4 and IPv6 network return EHOSTUNREACH (failed with ENETUNREACH
   before); the other ARP/ND tests unchanged.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to