Comment 4 for bug 1578842

Revision history for this message
Arun (sarun87) wrote :

Sorry for the delay. This is my first bug/review with Openstack. Interesting , I see different outputs at my end. Get a return code of 0 only when arping receives packets.

root@ubuntu01:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty
root@ubuntu01:~# arping -A -I eth0 10.4.0.1 -c 2 -w 1
ARPING 10.4.0.1

--- 10.4.0.1 statistics ---
2 packets transmitted, 0 packets received, 100% unanswered (0 extra)
root@ubuntu01:~# echo $?
1
root@ubuntu01:~# arping -A -I eth0 10.4.0.1 -c 2
ARPING 10.4.0.1

--- 10.4.0.1 statistics ---
2 packets transmitted, 0 packets received, 100% unanswered (0 extra)
root@ubuntu01:~# echo $?
1
root@ubuntu01:~# arping -I eth0 10.4.0.1 -c 2
ARPING 10.4.0.1
60 bytes from 00:18:0a:86:da:04 (10.4.0.1): index=0 time=3.338 msec
60 bytes from 00:18:0a:86:da:04 (10.4.0.1): index=1 time=2.463 msec

--- 10.4.0.1 statistics ---
2 packets transmitted, 2 packets received, 0% unanswered (0 extra)
root@ubuntu01:~# echo $?
0
root@ubuntu01:~# arping
ARPing 2.11, by Thomas Habets <email address hidden>
usage: arping [ -0aAbdDeFpqrRuv ] [ -w <us> ] [ -S <host/ip> ]
              [ -T <host/ip ] [ -s <MAC> ] [ -t <MAC> ] [ -c <count> ]
              [ -i <interface> ] <host/ip/MAC | -B>
For complete usage info, use --help or check the manpage.
root@ubuntu01:~#

@Hong Would it be a problem with my arping Binary? Could you share your arping version?