[Bug 170244] ping(8): useless/uninformative error message

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 11 02:15:07 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=170244

--- Comment #13 from Eugene Grosbein <eugen at freebsd.org> ---
You have exactly same errors for both cases. The reason is wrong static route
for 192.168.0.1/32 you created without a reason. You should remove it and leave
default route only.

As for original request about "uninformative" error message, I'm afraid it
cannot be improved at ping programm side. The error "Invalid argument" (code
22) is returned by the kernel to the ping and it describes some invalid system
configuration.

One example is yours, but there are numerous ways to misconfigure the system.
Another example would be static ARP table for an interface (ifconfig vlan40
staticarp) without static ARP entry for the gateway IP address. And so on.

There is no way for kernel or ping to perform in-depth debugging for the
administrator and give detailed report.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list