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: checksum calculation #2

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

Conversation

sibicramesh
Copy link

Add the last byte to the checksum incase of odd lengths.

@sibicramesh sibicramesh changed the title fix: checksum fix: tcp checksum Dec 19, 2019
@sibicramesh
Copy link
Author

@ghedo can you review this pr ?

@sibicramesh sibicramesh changed the title fix: tcp checksum fix: checksum calculation Dec 20, 2019
@ghedo
Copy link
Owner

ghedo commented Jan 30, 2020

@sibicramesh it'd be nice if you could add a test case (ideally for both even and odd lengths). Otherwise lgtm.

@ghedo
Copy link
Owner

ghedo commented Jan 30, 2020

Also, sorry for the delay.

MaxAFriedrich referenced this pull request in MaxAFriedrich/go.pkt Sep 6, 2023
…" (ghedo#4)

This reverts commit 1af745e.
We will leave the master to refer to github.com/ghedo so that we
do not pull in this change to any upstream PRs. The change to
the module name will be put on the branch called `go-mod` and this
is the branch that should be referenced from any import statements
in aporeto code.
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.

2 participants