diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2017-06-07 22:24:52 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-06-09 15:50:06 +0200 |
commit | 78c13b71e196a107eaa4ec00bb40b062929a6a88 (patch) | |
tree | 39598c8a9bd49e1a3d13247c288c04ea0778d69d /trafgen | |
parent | 322deaf9bae5dc87b174c4369e7d00b6bb0bf641 (diff) |
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 <vadim4j@gmail.com>
[tklauser: fix whitespace issues]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen')
-rw-r--r-- | trafgen/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
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 \ |