Skip to content
Commit 2c733d51 authored by Stephanos Ioannidis's avatar Stephanos Ioannidis Committed by Maureen Helm
Browse files

net: icmpv4: Return ENETUNREACH when IPv4 is unavailable



net_icmpv4_send_echo_request currently returns EINVAL (invalid
argument) when IPv4 is unavailable.

Since the availability of IPv4 has nothing to do with the arguments
provided to this function and the meaning of EINVAL in this case is
ambiguous, return the ENETUNREACH (network is unreachable) error
number instead.

Signed-off-by: default avatarStephanos Ioannidis <root@stephanos.io>
parent 44b43710
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment