So the 2nd last package and the last for that matter. Throw a invalid header size error in dpkt?! but why?
===============
_________________________________________________________________ ERROR collecting tests/extract_udp_test.py _________________________________________________________________
tests/extract_udp_test.py:2: in <module>
from src.udp import extract_udp_payload
src/udp.py:45: in <module>
print(extract_udp_payload(data))
src/udp.py:24: in extract_udp_payload
ip = dpkt.ip.IP(data)
venv/lib/python3.10/site-packages/dpkt/ip.py:79: in __init__
super(IP, self).__init__(*args, **kwargs)
venv/lib/python3.10/site-packages/dpkt/dpkt.py:160: in __init__
self.unpack(args[0])
venv/lib/python3.10/site-packages/dpkt/ip.py:117: in unpack
raise dpkt.UnpackError('invalid header length')
E dpkt.dpkt.UnpackError: invalid header length
========================================================================== short test summary info ===========================================================================
ERROR tests/extract_udp_test.py - dpkt.dpkt.UnpackError: invalid header length
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================== 1 error in 0.15s ==============================================================================
shell returned 2
So the 2nd last package and the last for that matter. Throw a invalid header size error in dpkt?! but why?