Some usefull tools for playing network frame
Some tools can send pcap file packets on NIC
tcpreplay
1 | # tcpreplay -l 0 -i eth1 path-to-your-captured-file.pcap |
bittwist
1 | # bittwist -i eth0 pcap-file.pcap |
playcap
The tool can play back Wireshark, tcpdump, and libpcap captures.
Maybe too old.
Packing and Decoding networking frame library
ryu (python)
https://osrg.github.io/ryu-book/en/html/index.html