Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mac system? #28

Closed
mozillazg opened this issue Oct 17, 2017 · 6 comments
Closed

Support mac system? #28

mozillazg opened this issue Oct 17, 2017 · 6 comments
Assignees

Comments

@mozillazg
Copy link

mozillazg commented Oct 17, 2017

First of all, I would like to thank you for your work! 馃憤

Do you have any plans for support mac system?

@thombashi
Copy link
Owner

Yes.
I planning to support for MAC.
However, I could not promise exactly when.
Since I have not possessed any MAC environment for now.

If you could provide me some of the ping command results (success cases/error cases/etc.) at MAC,
I can support MAC system more than faster.

@thombashi thombashi self-assigned this Oct 17, 2017
@mozillazg
Copy link
Author

arguments:

$ ping -h
ping: option requires an argument -- h
usage: ping [-AaDdfnoQqRrv] [-c count] [-G sweepmaxsize]
            [-g sweepminsize] [-h sweepincrsize] [-i wait]
            [-l preload] [-M mask | time] [-m ttl] [-p pattern]
            [-S src_addr] [-s packetsize] [-t timeout][-W waittime]
            [-z tos] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait]
            [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
Apple specific options (to be specified before mcast-group or host like all options)
            -b boundif           # bind the socket to the interface
            -k traffic_class     # set traffic class socket option
            -K net_service_type  # set traffic class socket options
            -apple-connect       # call connect(2) in the socket
            -apple-time          # display current time

error:

$ ping twitter.com -q -w 10
ping: invalid option -- w
$ ping twitter.com -q -W 10            # need cancel by control c
PING twitter.com (59.24.3.173): 56 data bytes
^C
--- twitter.com ping statistics ---
59 packets transmitted, 0 packets received, 100.0% packet loss
$ ping twitter.com -q -W 10 -c 10
PING twitter.com (31.13.78.66): 56 data bytes

--- twitter.com ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss
$ ping twitter.com -q -t 10
PING twitter.com (69.171.234.18): 56 data bytes

--- twitter.com ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss

success:

$ ping -q -t 10 github.com
PING github.com (192.30.255.112): 56 data bytes

--- github.com ping statistics ---
9 packets transmitted, 8 packets received, 11.1% packet loss
round-trip min/avg/max/stddev = 198.739/449.140/2012.432/594.003 ms
$ ping github.com -q -t 10
PING github.com (192.30.255.113): 56 data bytes

--- github.com ping statistics ---
10 packets transmitted, 10 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 218.391/283.477/405.879/70.170 ms

@mozillazg
Copy link
Author

on some mac system ping {hostname} -q -t will raise an error because can't put arguments after hostname:

$ ping github.com -q -t 10
usage: ping [-AaDdfnoQqRrv] [-b boundif] [-c count] [-G sweepmaxsize]
            [-g sweepminsize] [-h sweepincrsize] [-i wait] [鈭択 trafficclass]
            [-l preload] [-M mask | time] [-m ttl] [-p pattern]
            [-S src_addr] [-s packetsize] [-t timeout][-W waittime] [-z tos]
            host
       ping [-AaDdfLnoQqRrv] [-b boundif] [-c count] [-I iface] [-i wait]
            [鈭択 trafficclass] [-l preload] [-M mask | time] [-m ttl] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-W waittime]
            [-z tos] mcast-group
$ echo $?
64

@thombashi
Copy link
Owner

@mozillazg
Thank for your information.
That would be a great help.
I will try to implement support for MAC by your information.
(Probably in this weekend)

@thombashi
Copy link
Owner

@mozillazg
I had implemented MAC support at pingparsing 0.11.0
Please let me know if you have any problems at MAC environments.

@mozillazg
Copy link
Author

@thombashi Thanks for your work. It worked as expected. 馃憤

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants