pcapkit/protocols/misc/pcap/frame.py:199 seeds packet['bytesorder'] where every reader expects packet['byteorder']. The same file spells it correctly eleven lines earlier.
The two sites
pcapkit/protocols/misc/pcap/frame.py:176 packet['byteorder'] = self._ghdr.magic_number.byteorder
pcapkit/protocols/misc/pcap/frame.py:199 packet['bytesorder'] = self._ghdr.magic_number.byteorder
Same value, same source, two spellings, in one file. Readers use byteorder — pcapkit/protocols/misc/pcapng.py and pcapkit/protocols/schema/misc/pcapng.py each consult it twice.
Effect
The #594 worker reports that a big-endian classic PCAP crashes outright as a result, and that the one-character fix resolves it.
I have confirmed the typo by reading both lines. I have NOT reproduced the crash, and neither did the worker: it states plainly that no big-endian .pcap fixture exists in the repository, so the failure path is untested. That absence is itself worth noting — a byte-order branch with no fixture is a branch nothing exercises.
Notes
pcapkit/protocols/misc/pcap/frame.py:199seedspacket['bytesorder']where every reader expectspacket['byteorder']. The same file spells it correctly eleven lines earlier.The two sites
Same value, same source, two spellings, in one file. Readers use
byteorder—pcapkit/protocols/misc/pcapng.pyandpcapkit/protocols/schema/misc/pcapng.pyeach consult it twice.Effect
The #594 worker reports that a big-endian classic PCAP crashes outright as a result, and that the one-character fix resolves it.
I have confirmed the typo by reading both lines. I have NOT reproduced the crash, and neither did the worker: it states plainly that no big-endian
.pcapfixture exists in the repository, so the failure path is untested. That absence is itself worth noting — a byte-order branch with no fixture is a branch nothing exercises.Notes
examples/generators/make_samples.pyis where sample captures are produced.rjustversusljustfor little-endian short reads, which is a different defect on a different path.