summaryrefslogtreecommitdiff
path: root/trafgen_l2.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-01-26 22:25:02 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-01-28 16:15:03 +0100
commit11a7670eb559580885e096216a494d2c96702645 (patch)
treea6079c3685719dcafcf26719eaf7782b3d9dd09c /trafgen_l2.h
parent2ab562f1a46ffbc459146420caa86e400fa1b9e2 (diff)
trafgen: l2: Add Ethernet protocol header generation
Add trafgen_l2.c module for generating L2 related headers. Add Ethernet header generating. By default source MAC address is used from the specified output device. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l2.h')
-rw-r--r--trafgen_l2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/trafgen_l2.h b/trafgen_l2.h
new file mode 100644
index 0000000..e0d9702
--- /dev/null
+++ b/trafgen_l2.h
@@ -0,0 +1,12 @@
+#ifndef TRAFGEN_L2_H
+#define TRAFGEN_L2_H
+
+enum eth_field {
+ ETH_DST_ADDR,
+ ETH_SRC_ADDR,
+ ETH_PROTO_ID,
+};
+
+extern void protos_l2_init(void);
+
+#endif /* TRAFGEN_L2_H */