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

Add more ICMP ping options #51

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

nuclearcat
Copy link
Contributor

Add support for df (Don't fragment) option, size, timeout.

netmon.cc Outdated Show resolved Hide resolved
netmon.cc Outdated Show resolved Hide resolved
netmon.cc Outdated
double timeo=1.0;
if(!waitForData(sock, &timeo)) { // timeout

if(!waitForData(sock, &d_timeout)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one day waitForTimeout might start decrementing that timeout value, so best to keep this as 'double timeo = d_timeout'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amended sources, adjusted as you suggested.

Add support for df (Don't fragment) option, size, timeout.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
@berthubert berthubert merged commit 575071a into berthubert:main Jul 11, 2024
1 check passed
@berthubert
Copy link
Owner

Thank you! And sorry for being a bit difficult.

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

Successfully merging this pull request may close these issues.

2 participants