summaryrefslogtreecommitdiff
path: root/trafgen_l2.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2016-01-29 14:12:01 +0100
committerTobias Klauser <tklauser@distanz.ch>2016-01-29 14:19:47 +0100
commit2ba202b8320cbec32520d347ac256c2b4caf0458 (patch)
tree1e1be887468c3a4d5a769f5d1f838537fff86d0c /trafgen_l2.h
parent56ce71c166cdfeab7cb503d538fd176ec4548e05 (diff)
trafgen: parser: Support "etype"/"type" keywords for Ethertype
The IEEE 802.3 standard commonly refers to the field specifying the upper layer protocol as Ethertype, not protocol. Thus, also support the keywords "etype" and "type" for this field. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_l2.h')
-rw-r--r--trafgen_l2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trafgen_l2.h b/trafgen_l2.h
index 7643bc3..38727ec 100644
--- a/trafgen_l2.h
+++ b/trafgen_l2.h
@@ -4,7 +4,7 @@
enum eth_field {
ETH_DST_ADDR,
ETH_SRC_ADDR,
- ETH_PROTO_ID,
+ ETH_TYPE,
};
enum arp_field {