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

Length in IP header ignored by the code #250

Closed
aasselin opened this issue Jul 7, 2022 · 1 comment
Closed

Length in IP header ignored by the code #250

aasselin opened this issue Jul 7, 2022 · 1 comment

Comments

@aasselin
Copy link

aasselin commented Jul 7, 2022

Hello

The code introduced here ignores the length of the data as expressed in the header:

uint16_t ip_payload_len = pi.ip_datalen - ip_header_len;

The previous code was right.

In our use case, there 2 to 6 bytes of padding introduced by some hardware (router or such).

The new code pushes this code to the data, it provokes tons of warnings and strange errors.
Regards

@aasselin
Copy link
Author

aasselin commented Jul 7, 2022

sorry duplicate of #249

@aasselin aasselin closed this as completed Jul 7, 2022
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

1 participant