Rws generates a pcap from a simple packet descriptor language. The pcaps can then be used for testing together with tools such as tcpreplay. It is especially use full to generate invalid packets that no off-the-shelf traffic generator would be able to generate, e.g a corrupt TCP packet that is tunneled inside a Teredo tunnel that is sent over GTP-u. If a field in a protocol isn't specified resonable defaults are used.
- Fragv6 option
- HopByHop option
- PadN option
Numerous examples are provided in the samples dir.
Example: Given the file simple.pkt which contains: (eth (ipv4 src=22.214.171.124 dst=10.10.10.10 (udp))) the command: ./dist/build/rws/rws -i simple.pkt -o out.pcap
will generate a pcap file with a single UDP packet from 126.96.36.199 to 10.10.10.10.