fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
pip install dpkt
To run the all tests run:
tox
This project, lead by Dug Song, was originally hosted on dpkt code. It is now maintained here. The Google Code page will be closed soon.
We are currently working on improving documentation for the project.
@jonoberheide's old examples still apply:
- dpkt Tutorial #1: ICMP Echo
- dpkt Tutorial #2: Parsing a PCAP File
- dpkt Tutorial #3: dns spoofing
- dpkt Tutorial #4: AS Paths from MRT/BGP
Jeff Silverman has some code and documentation.
BSD 3-Clause License