Return code for unsolicited arping is 1 instead of 0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iputils (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
New
|
Low
|
Unassigned |
Bug Description
When running a gratuitous / unsolicited arp via "arping -U" on Ubuntu Focal
a return code of 1 is given, instead of always 0 (as there is no arp reply expected).
Focal:
--- cut ---
# arping -U -c1 -I eth0 127.0.0.1; echo "ReturnCode: $?"
ARPING 127.0.0.1 from 127.0.0.1 eth0
Sent 1 probes (1 broadcast(s))
Received 0 response(s)
ReturnCode: 1
# arping -V
arping from iputils s20190709
--- cut ---
see corresponding source at https:/
On Ubuntu Bionic this worked fine (and also does on Ubuntu Hirsute again BTW):
--- cut ---
arping -U -c 1 -I eth0 127.0.0.1; echo "ReturnCode: $?"
ARPING 127.0.0.1 from 127.0.0.1 eth0
Sent 1 probes (1 broadcast(s))
Received 0 response(s)
ReturnCode: 0
# arping -V
arping utility, iputils-s20161105
--- cut ---
see corresponding source for that version at https:/
As you can see by looking at the source arping always statically returns a "0" for unsolicited.
Changed in iputils (Ubuntu Focal): | |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in iputils (Ubuntu): | |
importance: | Undecided → Low |
Changed in iputils (Ubuntu Focal): | |
status: | Incomplete → New |
Status changed to 'Confirmed' because the bug affects multiple users.