====
dpkt
====
| |docs| |travis| |coveralls| |landscape| |version|
| |downloads| |wheel| |supported-versions| |supported-implementations|
.. |docs| image:: https://readthedocs.org/projects/dpkt/badge/?style=flat
:target: https://readthedocs.org/projects/dpkt
:alt: Documentation Status
.. |travis| image:: http://img.shields.io/travis/kbandla/dpkt/master.png?style=flat
:alt: Travis-CI Build Status
:target: https://travis-ci.org/kbandla/dpkt
.. |coveralls| image:: http://img.shields.io/coveralls/kbandla/dpkt/master.png?style=flat
:alt: Coverage Status
:target: https://coveralls.io/r/kbandla/dpkt
.. |landscape| image:: https://landscape.io/github/kbandla/dpkt/master/landscape.svg?style=flat
:target: https://landscape.io/github/kbandla/dpkt/master
:alt: Code Quality Status
.. |version| image:: http://img.shields.io/pypi/v/dpkt.png?style=flat
:alt: PyPI Package latest release
:target: https://pypi.python.org/pypi/dpkt
.. |downloads| image:: http://img.shields.io/pypi/dm/dpkt.png?style=flat
:alt: PyPI Package monthly downloads
:target: https://pypi.python.org/pypi/dpkt
.. |wheel| image:: https://pypip.in/wheel/dpkt/badge.png?style=flat
:alt: PyPI Wheel
:target: https://pypi.python.org/pypi/dpkt
.. |supported-versions| image:: https://pypip.in/py_versions/dpkt/badge.png?style=flat
:alt: Supported versions
:target: https://pypi.python.org/pypi/dpkt
.. |supported-implementations| image:: https://pypip.in/implementation/dpkt/badge.png?style=flat
:alt: Supported implementations
:target: https://pypi.python.org/pypi/dpkt
Installation
============
::
pip install dpkt
Documentation
=============
https://dpkt.readthedocs.org/
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](https://twitter.com/jonoberheide) 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