diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2017-02-07 10:15:57 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-02-09 10:48:56 +0100 |
commit | 82a3c204c6f11224b3f4da9246e96bed0c9bb8b8 (patch) | |
tree | 1ff925ecd468821bfd832167c63f2c5f5d422232 /trafgen_parser.y | |
parent | 71c9b1f9539f3f918269da47233dba9c07d8ec39 (diff) |
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>
Diffstat (limited to 'trafgen_parser.y')
-rw-r--r-- | trafgen_parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_parser.y b/trafgen_parser.y index b5fcbc0..c189a51 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -165,7 +165,7 @@ static inline void __setup_new_csum16(struct csum16 *s, off_t from, off_t to, s->which = which; } -static void realloc_packet(void) +void realloc_packet(void) { if (test_ignore()) return; |