pcap2udp

Crates.iopcap2udp
lib.rspcap2udp
version0.1.0
sourcesrc
created_at2019-09-03 18:23:40.7828
updated_at2019-09-03 18:23:40.7828
descriptionA simple tool to read microsecond-based pcap file frame by frame, remove N first bytes for each, then send each to one specified UDP socket, respecting timestamps.
homepage
repositoryhttps://github.com/vi/pcap2udp
max_upload_size
id161868
size13,669
Vitaly Shukela (vi)

documentation

README

pcap2udp

A simple tool to read microsecond-based pcap file frame by frame, remove N first bytes for each, then send each to one specified UDP socket, respecting timestamps.

Licence=Apache2.0 or MIT.

Usage

$ pcap2udp --help
pcap2udp 0.1.0

USAGE:
    pcap2udp <pcap-file> <skip-bytes> <bind-addr> <send-to>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <pcap-file>     
    <skip-bytes>    
    <bind-addr>     
    <send-to>       

Example: ./pcap2udp some_file.cap 42 127.0.0.1:0 127.0.0.1:1234

The file should probably be pre-filtered in Wireshark. Wireshark can also rell the required offset (skip_bytes) inside packets.

Prebuilt executables

On Github releases there should be following files:

pcap2udp_arm_android  pcap2udp_linux64        pcap2udp_linuxstatic64  pcap2udp_win32.exe
pcap2udp_arm_static   pcap2udp_linuxstatic32  pcap2udp_mac            pcap2udp_win64.exe

See also

Commit count: 3

cargo fmt