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

generateChecksums option doesn't work for me #63

Open
JoakimCh opened this issue Jun 26, 2020 · 2 comments
Open

generateChecksums option doesn't work for me #63

JoakimCh opened this issue Jun 26, 2020 · 2 comments

Comments

@JoakimCh
Copy link

JoakimCh commented Jun 26, 2020

Edit: I see that this was intentionally removed... The doc is not updated though. Removed in commit: e66bd32

const socket = rawSocket.createSocket({
  protocol: rawSocket.Protocol.ICMP,
  generateChecksums: true, // this doesn't write anything
  checksumOffset: 2
})
// this one works though
rawSocket.writeChecksum(packet, 2, rawSocket.createChecksum(packet))

If more info needed then let me know.

@stephenwvickers
Copy link
Collaborator

Yes, I see, sorry for that. I will get that updated in the next release.

@unreleased
Copy link

@stephenwvickers Is there any chance of getting some TCP examples too <3

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

No branches or pull requests

3 participants