Skip to content

Plans to use DGRAM sockets for ICMP ? #21

@snmgian

Description

@snmgian

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:

Caused by:
LoadError: cannot load such file -- cap2

cap2 is used to check whether there's net_raw enabled or not, because Net::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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions