Open mattmart3 opened 1 year ago
We need a time for the experiments.
Thank you for your consideration. I believe there could be some issue with RECVTTL and RETOPTS socket options (used by iputils implementation) which don't seem to be supported by rust socket2 library (yet?). Maybe there is a way around since ping3 does not seem to set those socket options.
Proposed new feature or change:
Would you consider adding a
SOCK_DGRAM
attempt in case the the raw socket fails on permission error? This would allow non privileged users to rungufo_ping
on Linux when a large ping_group_range is set (looks like it is now the default for many distros). This is done for instance by ping3 and by iptutils which actually triesDGRAM
as first option.