Package: arping Version: 2.01-3 Severity: minor Tags: patch When in quiet mode, a new line will be printed if an ARP answer is received while nothing will be printed if no answer is received. Here is what I mean (192.168.0.1 answers to ARP requests but there is no .254 on my LAN): --- example top --- $ echo "+"; sudo arping -q -c1 192.168.0.1; echo "+"; sudo arping -q -c1 192.168.0.254; echo "+" +
+ + --- example bottom --- See ? There is a new line too much corresponding to the first ARP request. Arping 1 is not affected but newer upstream release (2.04) is. Attached is a small patch that applies to 2.04 too. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.8-2-k7 Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8) Versions of packages arping depends on: ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an ii libnet1 1.1.2.1-2 library for the construction and h ii libpcap0.7 0.7.2-7 System interface for user-level pa -- no debconf information
--- arping-2/arping.c.orig 2005-01-27 21:56:47.000000000 +0100 +++ arping-2/arping.c 2005-01-27 21:58:33.000000000 +0100 @@ -451,7 +451,8 @@ default: fprintf(stderr, "arping: can't happen!\n"); } - printf(beep?"\a\n":"\n"); + if (display != QUIET) + printf(beep?"\a\n":"\n"); numrecvd++; } } @@ -532,7 +533,8 @@ fprintf(stderr, "arping: can't-happen-bug\n"); sigint(0); } - printf(beep?"\a\n":"\n"); + if (display != QUIET) + printf(beep?"\a\n":"\n"); numrecvd++; } }