From 78c13b71e196a107eaa4ec00bb40b062929a6a88 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Wed, 7 Jun 2017 22:24:52 +0300 Subject: trafgen: Allow to generate packets to output pcap file Add trafgen_dev.c module which provides generic way of reading and writing packets to/from networking device or a pcap file. Also allow to handle output pcap file via '-o, --out, --dev' option. It might be useful in future for testing some link protocols which is not easy to capture (e.g. wlan packets) w/o having some special setup. Signed-off-by: Vadim Kochan [tklauser: fix whitespace issues] Signed-off-by: Tobias Klauser --- trafgen.8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'trafgen.8') diff --git a/trafgen.8 b/trafgen.8 index fd9788a..50deacf 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -74,8 +74,9 @@ It is also possible to specify PCAP file with .pcap extension via -i,--in option by default packets will be sent at rate considering timestamp from PCAP file which might be reset via -b/-t options. .PP -.SS -o , -d , --out , --dev -Defines the outgoing networking device such as eth0, wlan0 and others. +.SS -o , -d , --out , --dev +Defines the outgoing networking device such as eth0, wlan0 and others or +a pcap file. .PP .SS -p, --cpp Pass the packet configuration to the C preprocessor before reading it into -- cgit v1.2.3-54-g00ecf