Skip to content

[Bug] "IPv6 header version should be 6 but instead is" error reported for valid IPv6 packets #899

@isambartm

Description

@isambartm

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

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions