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/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'trafgen') diff --git a/trafgen/Makefile b/trafgen/Makefile index d38f0b0..381f94d 100644 --- a/trafgen/Makefile +++ b/trafgen/Makefile @@ -25,6 +25,7 @@ trafgen-objs = xmalloc.o \ pcap_rw.o \ pcap_mm.o \ iosched.o \ + trafgen_dev.o \ trafgen_proto.o \ trafgen_l2.o \ trafgen_l3.o \ -- cgit v1.2.3-54-g00ecf