kbandla / dpkt

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

pcapng parsing example code #380

Open itaykrk opened 7 years ago

itaykrk commented 7 years ago

Hi, I'm looking for pcapng parsing example code. for example how to see comments added to a packet etc..

Thanks Allot.

obormot commented 7 years ago

@itaykrk I can work on an example for you. In the meantime have you checked some of the unit tests inside pcapng.py? There are a couple tests that demonstrate writing a new pcapng file, adding comments, etc.