-
Notifications
You must be signed in to change notification settings - Fork 26
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plans to use DGRAM sockets for ICMP ? #21
Comments
I'll check into that. Sorry about the late response. I'll plan to have a response on this within the next week. |
I'm not sure, but I never did get to look at this. Life took over and I got too busy. That sounds like a good idea. I'll try to take a look in the next week, but gladly accept pull requests. |
I did find this: https://apple.stackexchange.com/questions/312857/how-does-macos-allow-standard-users-to-ping Based on this, it may just be a matter of:
Which may obviate the need for cap2 (?) |
Hm, I still get a permissions issue on Linux, I'll have to test this at home on the mac. |
Yep, looks like that only works on Macs. |
Hi,
I'm running
net-ping
gem on macOS High Sierra, and at least Net::Ping::TCP and Net::Ping::External are working ok (the ones I tested).I tried Net::Ping::ICMP. I see it requires
cap2
gem, so it fails with:cap2
is used to check whether there's net_raw enabled or not, becauseNet::Ping::ICMP
uses raw socket.Why does it use raw sockets? Is there any plan to use DGRAM sockets? Apple's ping utility uses DGRAM when the user is not root.
The text was updated successfully, but these errors were encountered: