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

IPv6 package sets wrong internet checksum #10

Closed
GoogleCodeExporter opened this issue May 5, 2015 · 1 comment
Closed

IPv6 package sets wrong internet checksum #10

GoogleCodeExporter opened this issue May 5, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

In __str__ in the class IP6, IP6 sets the checksum of the payload (TCP or
ICMP6) to 

self.data.sum = dpkt.in_cksum_done(s + self.nxt + len(p))

The correct statement is  
self.data.sum = dpkt.in_cksum_done(s + socket.htons(self.nxt + len(p)))

Original issue reported on code.google.com by avkulka...@gmail.com on 15 Aug 2008 at 5:39

@GoogleCodeExporter
Copy link
Author

Thanks for the report, fixed in r50.

Original comment by jon.ober...@gmail.com on 17 Aug 2008 at 8:10

  • Changed state: Fixed

Attachments:

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

No branches or pull requests

1 participant