trafgen: Allow send packets from pcap file
commit82a3c204c6f11224b3f4da9246e96bed0c9bb8b8
authorVadim Kochan <vadim4j@gmail.com>
Tue, 7 Feb 2017 08:15:57 +0000 (7 10:15 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 9 Feb 2017 09:48:56 +0000 (9 10:48 +0100)
tree1ff925ecd468821bfd832167c63f2c5f5d422232
parent71c9b1f9539f3f918269da47233dba9c07d8ec39
trafgen: Allow send packets from pcap file

Add ability to send packets from pcap file if it has
".pcap" extension via "-i,--in" option.

By default packet sending is delayed considering original
packets timestamps if no rate or delay is specified via -b/-t options.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
trafgen.c
trafgen/Makefile
trafgen_conf.h
trafgen_parser.y