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

UDP calculated checksum 0 should be set as 0xFFFF in the frame #160

Closed
pstavirs opened this Issue Oct 7, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@pstavirs
Owner

pstavirs commented Oct 7, 2015

As per RFC 768, if the calculated UDP checksum is 0, it should be instead set as 0xFFFF in the frame. A value of 0 in the checksum field indicates to the receiver that no checksum was calculated and hence it should not verify the checksum.

Reported on the mailing list -
https://groups.google.com/forum/#!topic/ostinato/6HnlOihYJ40

@pstavirs pstavirs added the bug label Oct 7, 2015

@pstavirs pstavirs closed this in 2cad79b Oct 7, 2015

cdm-work pushed a commit to cdm-work/ostinato that referenced this issue Dec 7, 2017

Bugfix: A calculated UDP checksum of 0 should be set as 0xFFFF in the…
… frame as per RFC 768. A checksum value of 0 in the frame is "special" and indicates that no checksum was calculated and hence receiver should not verify the same. This special case seems to be only for UDP, not TCP though.

Fixes #160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment