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] "IPv6 header version should be 6 but instead is" error reported for valid IPv6 packets #899

Open
isambartm opened this issue Aug 29, 2024 · 4 comments
Assignees
Labels

Comments

@isambartm
Copy link

Replaying valid IPv6 traffic over Ethernet, I get the following error message for most packets (when first 4 bits of Ethernet Destination MAC not set to "6"):

  • "IPv6 header version should be 6 but instead is"

Looking at where this error message is generated (flows.c, lines 242-248), it seems the IPv6 version may be checked using the wrong packet offset. This currently uses "packet[0]", but I think this may need to be "packet[l2len]" instead.

To Reproduce
Steps to reproduce the behavior:

  1. Replay IPv6 traffic over Ethernet (first 4 bits of Ethernet Destination MAC should not be set to to "6")

Expected behavior
Traffic should be replayed without error.

System (please complete the following information):

  • OS: Red Hat Enterprise Linux
  • OS version: 9.4
  • Tcpreplay Version: 4.5.1
@fklassen
Copy link
Member

Works for me. Please provide a packet capture and command-line syntax.

@isambartm
Copy link
Author

Here is an example trace that shows this issue:
https://wiki.wireshark.org/uploads/__moin_import__/attachments/SampleCaptures/v6-http.cap

I just replayed it using:
tcpreplay -i <interface_name> v6-http.cap

@fklassen fklassen self-assigned this Sep 21, 2024
@fklassen fklassen added the bug label Sep 21, 2024
@hugo0819
Copy link

Hello, I also encountered the same error, I want to know which old versions can be used normally?

@isambartm
Copy link
Author

I believe version 4.4.4 won't show this error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants