Ping of a link local address with -I as non-root produces "Invalid argument"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iputils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
iputils-ping 3:20161105-1ubuntu2 amd64 18.04.1 LTS
In the following, "c7" is a host with the link-local address fe80::5054:
The mapping is in "/etc/hosts". It is reachable via the "enp2s0" interface on the local
machine. I have masked the local machine's MAC address.
1. As a regular (non-root) user, ping returns "Invalid argument":
$ ping -I enp2s0 c7
PING c7(c7 (fe80::
ping: sendmsg: Invalid argument
ping: sendmsg: Invalid argument
ping: sendmsg: Invalid argument
2. As root, ping works:
# ping -I enp2s0 c7
PING c7(c7 (fe80::
64 bytes from c7 (fe80::
64 bytes from c7 (fe80::
64 bytes from c7 (fe80::
3. Specifying the interface-qualified IPv6 address directly works:
$ ping fe80::5054:
PING fe80::5054:
64 bytes from fe80::5054:
64 bytes from fe80::5054:
64 bytes from fe80::5054:
tags: | added: bionic |
Thank you for your bug report, that looks similar to the bug fixed in https:/ /github. com/iputils/ iputils/ pull/100