kbandla / dpkt

fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
Other
1.08k stars 270 forks source link

Support for PCAPNG Packet Block #630

Closed Schwaggot closed 2 years ago

Schwaggot commented 2 years ago

Although the PCAPNG Packet Block type was deprecated a while ago, there are still capture files out there that are written in this format, cf. https://www.ietf.org/staging/draft-tuexen-opsawg-pcapng-02.html#name-packet-block-obsolete

When merged this will add simple support for parsing Packet Block types from PCAPNG files. The type definition was already there, so I guess support was planned anyways?

obormot commented 2 years ago

Please add unit tests

coveralls commented 2 years ago

Coverage Status

Coverage increased (+0.0009%) to 99.817% when pulling 817619f024b65747500855e5c1ebfcee6aa17dc1 on Schwaggot:support-for-deprecated-packet-block into e38d18d20d93fb77aedd2397fe3a38b31bc4b28d on kbandla:master.

Schwaggot commented 2 years ago

Added unit tests.