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

Fix bug in receive_one_ping func #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gzxultra
Copy link
Contributor

@gzxultra gzxultra commented Apr 26, 2019

There is a bug in receive_one_ping function now and this PR intends to fix it

When we are using SOCK_DGRAM to send packets, the packet_id from the reply will be filled by the kernel and it could be different(leading to an all packet lost problem)
image

For packets sent through SOCK_DGRAM, we don't need to check packet_id.

#21 (comment)

@gzxultra
Copy link
Contributor Author

Do we need to bump a version here? @laixintao

@gzxultra
Copy link
Contributor Author

Don't merge, looks like we have something to fix on OS X this time...

@laixintao
Copy link
Owner

FYI: An article about ping without root by @lilydjwg here: https://blog.lilydjwg.me/2013/10/29/non-privileged-icmp-ping.41390.html

@laixintao
Copy link
Owner

We don't need to bumpversion on branch, only bumpversion on master.

@laixintao
Copy link
Owner

Ping ...

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.

None yet

2 participants