Fancy ping count failed

Jason Schoon floydpink at gmail.com
Thu Aug 24 04:41:11 UTC 2006


On 8/23/06, nawawi <mohd.nawawi at gmail.com> wrote:
>
> Hi All,
>
> Im compiled busybox with fancy ping output option, the result show as
> below:
>
> # ./busybox ping 192.168.0.1 -c 1
> PING 192.168.0.1 (192.168.0.1): 56 data bytes
> 64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=5.7 ms
> 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.2 ms
> 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.5 ms
> 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=1.3 ms
> 64 bytes from 192.168.0.1: icmp_seq=4 ttl=64 time=0.4 ms
>
> look like count option not work, its bug or something i missed out?
>
> Thanks
> _______________________________________________


I would say a little bit of both.  The ping applet does not use getopt, it
just parses argv/argc directly.  Thus, its parsing is a bit brittle.  If you
do "ping -c 1 address" it works, since that follows the expected usage of
"ping options hostname".  Yuck.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20060823/f0d32372/attachment.htm 


More information about the busybox mailing list