https://github.com/vi/pcap2udp
Simple tool to send frames from pcap dump as udp packets
https://github.com/vi/pcap2udp
Last synced: 11 months ago
JSON representation
Simple tool to send frames from pcap dump as udp packets
- Host: GitHub
- URL: https://github.com/vi/pcap2udp
- Owner: vi
- Created: 2019-09-03T18:00:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-03T18:32:46.000Z (almost 7 years ago)
- Last Synced: 2025-04-15T14:13:34.533Z (about 1 year ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
```
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 help determining required offset (`skip_bytes`) inside packets. Typical RTP in UDP in IPv4 in Ethernet is `42`.
# 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
* [udpreplay](https://github.com/rigtorp/udpreplay)