Skip to content

ipv6 packet with option decodes error #218

@h3cnp

Description

@h3cnp

Describe the bug
An IPv6 packet with option decodes error

System information
A clear and concise description of your system information.

  • OS Version: win10
  • Python Version: 3.11
  • Python Implementation: [e.g. CPython, PyPy]

Traceback stack

pcapkit.PCAPKIT_DEVMODE=True
json = pcapkit.extract(fin='ipv4_over_srv6.pcap', fout='out.json', format='json', extension=False)
[ERROR] 06/24/2024 03:36:43 PM - bad char in struct format
struct.error: bad char in struct format
[WARNING] 06/24/2024 03:36:43 PM - EOF reached

json = pcapkit.extract(fin='sbfd.pcap', fout='out.json', format='json', extension=False)
[WARNING] 06/24/2024 03:37:19 PM - EOF reached

frame.zip

Expected behavior
L4 header (e.g. UDP) or tunnel payload after IPv6 option decodes error. It looks like L4 parsing starts from the ipv6 option.
Find the example packet in the attachment.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions