liboping
liboping copied to clipboard
Mac version needs sudo
I tried searching for existing issue...
Would it be possible to make the mac version not require sudo?
$ oping -c 1 github.com
PING github.com (192.30.253.113) 56 bytes of data.
ping_send failed: Operation not permitted
$ sudo oping -c 1 github.com
Password:
PING github.com (192.30.253.113) 56 bytes of data.
56 bytes from github.com (192.30.253.113): icmp_seq=1 ttl=52 time=100.46 ms
--- github.com ping statistics ---
1 packets transmitted, 1 received, 0.00% packet loss, time 100.5ms
RTT[ms]: min = 100, median = 100, p(95) = 100, max = 100
https://github.com/Homebrew/homebrew-core/blob/bc5d3eb18d081f2726f7a74ab03369996639afda/Formula/liboping.rb#L22-L24
It's been that way since 2011... https://github.com/Homebrew/homebrew-core/commit/e5f6e112bfd69344376e12fc1c8ca1b99f03a731#diff-824c42d61d2b8fa25d0c96735888a432R21
Title should be changed to "Mac version needs sudo"; the problem is not Homebrew-specific. Can we get any response as to why this is the case? Just to be clear, /usr/bin/ping works without sudo.
Hello,
same issue here.
ping works without sudo oping/noping needs sudo. without sudo: "ping_send failed: Operation not permitted"
What could i help to solve this issue?
Thanks for the great tool
+1
same here
noping requires sudo for various linux distros going back a few years since i discovered this utility. Just adding this as a comment as i didn't see any other mention of this. There was also a bug opened up in ubuntu's bugracker i came across a couple years ago without a solution.
+1