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

Introduced change creates problem with spurious data #249

Open
aasselin opened this issue Jul 7, 2022 · 3 comments
Open

Introduced change creates problem with spurious data #249

aasselin opened this issue Jul 7, 2022 · 3 comments

Comments

@aasselin
Copy link

aasselin commented Jul 7, 2022

Hello

uint16_t ip_payload_len = pi.ip_datalen - ip_header_len;

the old code here would read :
uint16_t ip_payload_len = ip_len - ip_header_len;

it was changed to:
uint16_t ip_payload_len = pi.ip_datalen - ip_header_len;

but the new codes just ignores the header information.
In our use case, there are 2 to 6 paddings bytes at the end of the IP data packet, introduce by some hardware device.

Please revert the code.
Regards

@simsong
Copy link
Owner

simsong commented Jul 7, 2022

Thanks for the patch. I'll do something better. Can you share with me some packets for testing?
I've added a lot of unit tests to bulk_extractor. For tcpflow I should do the same. I should also upgrade it to use the be20_api rather than the be16_api.

@aasselin
Copy link
Author

aasselin commented Jul 8, 2022

I check if I can provide you with a .pcap, the data flow is a private flow, I am not sure that I have the right to provide it.

@simsong
Copy link
Owner

simsong commented Jul 8, 2022

Don’t provide it if is private!

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

2 participants