-
Notifications
You must be signed in to change notification settings - Fork 274
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
tcpreplay-edit
incorrectly rewrites layer 3 length field to include Ethernet padding
#845
Comments
To get a pcap with the padding, it's likely easiest to do |
This is related to the issue #844 |
Based upon my investigation, the packet length "fix" was introduced due to issue #703. |
Please check whether PR #846 resolves your issue. |
@ChuckCottrill Tested PR, looks like it fixes this issue. Thank you for the help. |
Fixed in PR #846 |
Describe the bug
Ethernet has a 64-byte minimum frame size. Frames smaller than this (for example, plain TCP ACK without options on IPv4) need to be padded to 64 bytes (60 bytes excluding FCS).
tcpreplay-edit
(but nottcpreplay
) will incorrectly include Ethernet padding bytes in the IP length field.To Reproduce
Steps to reproduce the behavior:
tcpdump
on the interface wheretcpreplay-edit
will be runtcpreplay-edit
any pcap with ethernet padding bytes to the interfaceExpected behavior
tcpreplay-edit
(liketcpreplay
) does not modify the IP length field and keeps the padding.System (please complete the following information):
Additional context
None
The text was updated successfully, but these errors were encountered: