Python utility to make Chapter 10/11 file packets available to network tools or replay as UDP packets.
- 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.
pip install c10netNote: c10net uses libpcap for pcap packet generation.
On Windows, install Npcap and ensure it is available to your system.
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.
The package installs a console script c10net. Run c10net -h for top-level help.
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.
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.
- Use
--portto set the destination port number of generated UDP packets. - Use
--ipto set the destination IP address of generated UDP packets.
Convert a Chapter 10 file to PCAP:
c10net convert_pcap input.ch10 --out output.pcapReplay over the network (pulse setup packet every second):
c10net replay input.ch10 --pulse --ip 192.168.1.10 --port 49152Run the test suite with pytest (after installing the optional [test] dependency group):
pytest -qBSD-3-Clause