Skip to main content
Travis-CI Build Status Coverage Status PyPI Wheel Supported versions Supported implementations

Installation

pip install dpkt

Documentation

https://dpkt.readthedocs.org/

Recent Stuff

(2020-02-07) Released 1.9.5, thanks a bunch to all contributors but mostly to @crocogorical for doing most of the work :)

1.9.5 Changelog:
  • New example showing how to process truncated DNS packets (examples/print_dns_truncated.py).

  • Corrected typo in BGP.notification attribute.

  • BGP.Update.Attribute.MPReachNLRI.SNPA now inherits from dpkt.Packet.

  • Byteorder is now specified when packing GRE optional fields.

  • #517: Improvement to Radiotap class, supporting multi-byte and misaligned flags fields. Endianness is now enforced.

  • Github issue template added for bug reporting.

  • Compliance with flake8 formatting.

  • asn1.py::utctime method now returns time in UTC, instead of local.

  • Allow multiple InterfaceDescriptionBlocks with pcapng.Writer.

  • SCTP decoder DATA chunk padding aligned to 4-bytes, and improved handling of .data field.

  • IEEE80211 DELBA frame now works on big and little-endian architectures.

  • Introduce compat.ntole which converts from network byte order to little-endian byte order, regardless of host endianness.

  • Ethernet class now attempts to unpack the padding and trailer if present.

  • Added anonymous property to cipher suites, which returns True if the cipher suite starts with ‘anon’.

  • Added pfs (Perfect Forward Secrecy) and aead (Authenticated Encryption with Additional Data) properties to cipher suites.

  • Added old CHACHA20-POLY1305 related cipher suites to TLS CipherSuite list.

  • Remove redundant num_compression_methods from TLSClientHello

  • Testing improved from 90% coverage to over 99%.

About

This code is based on dpkt code lead by Dug Song and is now being maintained and improved by an extended set of contributors and developers.

LICENSE

BSD 3-Clause

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dpkt-1.9.5.tar.gz (160.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dpkt-1.9.5-py3-none-any.whl (177.1 kB view details)

Uploaded Python 3

File details

Details for the file dpkt-1.9.5.tar.gz.

File metadata

  • Download URL: dpkt-1.9.5.tar.gz
  • Upload date:
  • Size: 160.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for dpkt-1.9.5.tar.gz
Algorithm Hash digest
SHA256 141cab4defcb4ead83e664765ebb045f55dbe73e17d617acafd6eaf368d7c55e
MD5 b1412a55aa84bce3415a2aded55e24d5
BLAKE2b-256 ce6648723e4c8d3d18b70f47267ab4d29444eaa0d71582515e44583163b6df75

See more details on using hashes here.

File details

Details for the file dpkt-1.9.5-py3-none-any.whl.

File metadata

  • Download URL: dpkt-1.9.5-py3-none-any.whl
  • Upload date:
  • Size: 177.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

File hashes

Hashes for dpkt-1.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c07b4a61a4f957edda40b36683851604f2f799d76a2b7c315f01811e100ec320
MD5 6ee1d54255b3a9acbf3944f20f92c09c
BLAKE2b-256 2a85e7b648df0f07f929ab8a9f3215057f62bcfb07542405f62018e484000d77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page