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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: SOCK_DGRAM support #6

Open
mattmart3 opened this issue Apr 17, 2023 · 2 comments
Open

ENH: SOCK_DGRAM support #6

mattmart3 opened this issue Apr 17, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@mattmart3
Copy link

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 run gufo_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 tries DGRAM as first option.

@mattmart3 mattmart3 added the enhancement New feature or request label Apr 17, 2023
@dvolodin7 dvolodin7 self-assigned this Apr 27, 2023
@dvolodin7
Copy link
Contributor

We need a time for the experiments.

@mattmart3
Copy link
Author

mattmart3 commented Apr 28, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants