Skip to main content

Python utility to make Chapter 10/11 file packets available to network tools or replay as UDP packets.

Project description

c10net

Python utility to make Chapter 10/11 file packets available to network tools or replay as UDP packets.

Features

  • Convert Chapter 10 data into a PCAP file containing UDP packets for analysis.
  • Replay Chapter 10 data over the network, preserving original timing.
  • Filter by channel ID and channel type during conversion or replay.
  • Specify destination port and IP.

Installation

Install utility from PyPI:

pip install c10net

Note: c10net uses libpcap for pcap packet generation.
On Windows, install Npcap and ensure it is available to your system.

Install for developers (Windows):

git clone https://github.com/atac/c10net
py -m venv .venv
.\.venv\Scripts\activate
pip install -e .[all]

The [all] group installs the [test] and [dev] dependency groups.

Usage

The package installs a console script c10net. Run c10net -h for top-level help.

convert_pcap

Convert Chapter 10 file to a PCAP file comprised of UDP packets.

c10net convert_pcap "C:\path\to\myfile.ch10"

With default options, a PCAP file is generated at "C:\path\to\myfile.pcap"

Use ch10net convert_pcap -h for more options.

replay

Generate UDP packets from Chapter 10 file and send over a network interface.

c10net replay "C:\path\to\myfile.ch10"

With default options, UDP packets are replayed over available network interface with destination IP 127.0.0.1 and port 5006.

Use ch10net replay -h for more options.

Network Options

  • Use --port to set the destination port number of generated UDP packets.
  • Use --ip to set the destination IP address of generated UDP packets.

Examples

Convert a Chapter 10 file to PCAP:

c10net convert_pcap input.ch10 --out output.pcap

Replay over the network (pulse setup packet every second):

c10net replay input.ch10 --pulse --ip 192.168.1.10 --port 49152

Testing

Run the test suite with pytest (after installing the optional [test] dependency group):

pytest -q

License

BSD-3-Clause

Project details


Download files

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

Source Distribution

c10net-0.0.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

c10net-0.0.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file c10net-0.0.2.tar.gz.

File metadata

  • Download URL: c10net-0.0.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for c10net-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fba38f412b82bfe1521114b19f6f77cbbe644fa869e762a0c5cf20674ee2c059
MD5 d154f2ee554b8cb6815e8eb53cb1bb05
BLAKE2b-256 ccef990a38432e050efb11a3bc143a5b60b1217d49631de9ac9c7258c39b3077

See more details on using hashes here.

File details

Details for the file c10net-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: c10net-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for c10net-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e58664d3371b5d90d8949b3597a73dfceb9b20708df718a9c8c196bdec26c2b8
MD5 27041ee79e6a80b0986ea8f3594ecdcf
BLAKE2b-256 951c9def768180673645a308e0f6e83e1eb80f18fc17571f49a69e82eb0ffa39

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 Pingdom Monitoring Sentry Error logging StatusPage Status page