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

[Bug] tcprewrite alters the Source and Destination MAC addresses when not required. #794

Open
goolje opened this issue Apr 12, 2023 · 1 comment

Comments

@goolje
Copy link

goolje commented Apr 12, 2023

I have a large number of PCAPs which I use for automated testing. For security reasons, the Source and Destination IP addresses are changed (with a seed) before sending with tcpreplay. The seed is the same every time so that the output addresses are the same each time.
This was working fine up until recently. Now, when the PCAP is fuzzed with tcprewrite, the Source and Destination MAC addresses also sometimes change (but not always):
Input: "SourceMACAddress":"66:77:88:99:aa:bb","DestinationMACAddress":"00:11:22:33:44:55"
Output: "SourceMACAddress":"01:00:5e:99:aa:bb","DestinationMACAddress":"01:00:5e:33:44:55"

It means hundreds of tests fail because the Output no longer matches the Expected Output.

I'd attach an example PCAP, but I can't see where I can do that.

Oracle Linux Server 9.1
tcpreplay version 4.4.3

@fklassen
Copy link
Member

You can attach a cap file by dragging it into the dialog, however it cannot have a .cap or .pcap extention. Many remove the extention, or gzip to get a .gz extension, or zip it to give it .zip extention. Then GitHub will accept it.

I may not be able to get it into 4.4.4 unless you get the sample to me. Please write up a full bug report so I know version, OS, exact command-line etc.

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