Package: iputils-ping Version: 3:20121221-4 Severity: important Broadcast ping is broken.
Example where 4 hosts answer, but they are all incorrectly reported as 172.16.1.17: $ ping -b 172.16.0.0 WARNING: pinging broadcast address PING 172.16.0.0 (172.16.0.0) 56(84) bytes of data. 64 bytes from 172.16.1.17: icmp_seq=1 ttl=64 time=0.597 ms 64 bytes from 172.16.1.17: icmp_seq=1 ttl=64 time=0.609 ms (DUP!) 64 bytes from 172.16.1.17: icmp_seq=1 ttl=64 time=0.610 ms (DUP!) 64 bytes from 172.16.1.17: icmp_seq=1 ttl=64 time=0.851 ms (DUP!) 64 bytes from 172.16.1.17: icmp_seq=2 ttl=64 time=0.317 ms 64 bytes from 172.16.1.17: icmp_seq=2 ttl=64 time=0.328 ms (DUP!) 64 bytes from 172.16.1.17: icmp_seq=2 ttl=64 time=0.329 ms (DUP!) 64 bytes from 172.16.1.17: icmp_seq=2 ttl=64 time=0.330 ms (DUP!) strace shows that IP is received correctly to 'ping', but stdout write uses wrong IP: # strace ping -b 172.16.0.0 <...> recvmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("172.16.1.132")}, msg_iov(1)=[{"E\0\0T\202\f\0\0@\1\235\365\254\20\1\224\254\20\1\3\0\0\221~\24\16\0\0015\241\341R"..., 192}], msg_controllen=32, {cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=0x1d /* SCM_??? */, ...}, msg_flags=0}, 0) = 84 write(1, "64 bytes from 172.16.1.104: icmp"..., 6764 bytes from 172.16.1.104: icmp_seq=1 ttl=64 time=0.366 ms (DUP!) ) = 67 recvmsg(3, {msg_name(16)={sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("172.16.1.17")}, msg_iov(1)=[{"E\0\0T\t\10\0\0@\1\27m\254\20\1\21\214\20\1\3\0\0\221~\24\16\0\0015\241\341R"..., 192}], msg_controllen=32, {cmsg_len=32, cmsg_level=SOL_SOCKET, cmsg_type=0x1d /* SCM_??? */, ...}, msg_flags=0}, 0) = 84 write(1, "64 bytes from 172.16.1.104: icmp"..., 6764 bytes from 172.16.1.104: icmp_seq=1 ttl=64 time=0.488 ms (DUP!) -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.12-1-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages iputils-ping depends on: ii libc6 2.17-97 ii libcap2 1:2.22-1.2 ii libgnutls-openssl27 2.12.23-8 Versions of packages iputils-ping recommends: ii libcap2-bin 1:2.22-1.2 iputils-ping suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org