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

UDP packets over MTU contain corrupted bytes around the MTU limit #36

Open
bjubes opened this issue Oct 11, 2024 · 1 comment
Open

UDP packets over MTU contain corrupted bytes around the MTU limit #36

bjubes opened this issue Oct 11, 2024 · 1 comment

Comments

@bjubes
Copy link

bjubes commented Oct 11, 2024

I'm restreaming a pcap that has large UDP packets that are broken up due to being over the MTU. Wireshark shows this as "fragmented ipv4 protocol" as well as the final large UDP packet. However, when i try to replay these, around the MTUth byte, i will get invalid characters (non ascii but all the udp data is ascii). The data is correct in wireshark but invalid when listening via netcat nc -ul

image

@Tim-S
Copy link

Tim-S commented Nov 10, 2024

Hi @bjubes ,
looking at the code I think your issue is that udpreplay does not perform IP-Defragmentation.
However you can pre-process your data with a Tool like [IPDefragUtil](https://github.com/seladb/PcapPlusPlus/blob/master/Examples/IPDefragUtil/README.md
on your recording before replaying it.

If you need a udpreplay version with working Ipv4 Defragmentation support included,
I can create a PR with some simple IpDefragmentation to udpreplay,

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