mirror of https://github.com/kbandla/dpkt.git
2.8 KiB
2.8 KiB
dpkt
fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols
Installation
pip install dpkt
Documentation
Development
To run the all tests run:
tox
Deviations from upstream
This code is based on dpkt code lead by Dug Song.
At this point, this is not the exact upstream version. If you are looking for the latest stock dpkt, please get it from the above link.
Almost all of the upstream changes are pulled. However, some modules are not. Here is a list of the changes:
- dpkt/dpkt.py: decouple dnet from dpkt
-
- dpkt/dns.py
- parse some more DNS flags
Examples
@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.
LICENSE
BSD 3-Clause License, as the upstream project