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

net: shell: Handle ENETUNREACH for IPv4 ping



This commit updates the the IPv4 ping command to handle the ENETUNREACH
error number returned by `net_icmpv4_send_echo_request` function when
IPv4 is unavailable.

The `net_icmpv4_send_echo_request` function previously returned EINVAL
when IPv4 is unavailable and this caused the shell command to report
"Invalid IP address" even when the provided IP address is correct; this
problem was corrected by returning ENETUNREACH instead of EINVAL in the
aforementioned function.

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