GNOME Bugzilla – Bug 634749
no output detected with iputils-ping
Last modified: 2011-07-13 07:16:58 UTC
Created attachment 174387 [details] [review] Handle icmp_req as well as icmp_seq in output The output from iputils-ping looks like this: 64 bytes from window.gnome.org (209.132.180.167): icmp_req=1 ttl=53 time=170 ms Since gnome-nettool looks for icmp_seq, not icmp_seq, it discards all output and considers ping fails.
Created attachment 181098 [details] [review] Patch to ping.h to allow icmp_req or icmp_seq to parse Requires no changes to code elsewhere in the program.
Review of attachment 174387 [details] [review]: Thanks.
Review of attachment 181098 [details] [review]: This patch needs work. BTW, the problem is fixed in Linux, where the bug was found. I assume other platforms are working fine. ::: src/ping.h @@ +29,3 @@ # define PING_PROGRAM_FORMAT "%s ping -b%s-n %s" # define PING_PROGRAM_FORMAT_6 "%s ping6%s-n %s" +# define PING_FORMAT "%d bytes from %s icmp_%*1ceq=%d ttl=%d time=%s %s" %*1c gives warnings. @@ +35,3 @@ # define PING_PROGRAM_FORMAT "%s ping%s-n %s" # define PING_PROGRAM_FORMAT_6 "%s ping6%s-n %s" +# define PING_FORMAT "%d bytes from %s icmp_%*1ceq=%d ttl=%d time=%s %s" In this case, the number of arguments increase in 1. So, it is necessary to fix PING_PARAMS and change the source code. Look at the patch from Josselin Mouette.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report. This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.