PyPCAPKit icon indicating copy to clipboard operation
PyPCAPKit copied to clipboard

ipv6 packet with option decodes error

Open h3cnp opened this issue 1 year ago • 0 comments

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.

h3cnp avatar Jun 24 '24 07:06 h3cnp