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

Change decodeIp to only consider use up to byte Length bytes. #7

Merged
merged 1 commit into from Nov 23, 2011
Merged

Change decodeIp to only consider use up to byte Length bytes. #7

merged 1 commit into from Nov 23, 2011

Conversation

gconnell
Copy link
Contributor

This solves the issue where Ethernet packets must be a minimum of 60 bytes, but
can take up only 54 bytes on the wire if there's no payload added. Without
this change, packets of that type may appear to be TCP packets with 6 null bytes
in their payload.

See
http://forums.devshed.com/networking-help-109/tcp-protocol-mysterious-6-null-byte-payload-303357.html
for more discussion on this.

This solves the issue where Ethernet packets must be a minimum of 60 bytes, but
can take up only 54 bytes on the wire if there's no payload added.  Without
this change, packets of that type may appear to be TCP packets with 6 null bytes
in their payload.

See
http://forums.devshed.com/networking-help-109/tcp-protocol-mysterious-6-null-byte-payload-303357.html
for more discussion on this.
akrennmair added a commit that referenced this pull request Nov 23, 2011
Change decodeIp to only consider use up to byte Length bytes.
@akrennmair akrennmair merged commit 563984f into akrennmair:master Nov 23, 2011
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