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

Pass the data with the message in case there is a payload #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kkirsche
Copy link

Allow the user to decide if they need the payload of the packet itself. This passes the data back to the user so that they can process it if desired.

Allow the user to decide if they need the payload of the packet itself. This passes the data back to the user so that they can process it if desired.
@tatsushid
Copy link
Owner

This uses []uint8 type for a payload value but []byte is better. Indeed, byte is uint8 alias but according to https://godoc.org/golang.org/x/net/icmp#Echo, Data is defined as []byte so using []byte is less confusing.

@kkirsche
Copy link
Author

Fixed @tatsushid — thanks for the feedback

@tatsushid
Copy link
Owner

Sorry for the late reply.

The code looks good! Thanks for fixing it. This code includes a little API change and it would break the code which uses this library so I will announce about it and merge later.

@kkirsche
Copy link
Author

I wanted to follow up on this and see what your plans were regarding this?

@kkirsche
Copy link
Author

Following up on this, will this be merged?

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