summaryrefslogtreecommitdiff
path: root/trafgen_lexer.l
diff options
context:
space:
mode:
Diffstat (limited to 'trafgen_lexer.l')
-rw-r--r--trafgen_lexer.l7
1 files changed, 7 insertions, 0 deletions
diff --git a/trafgen_lexer.l b/trafgen_lexer.l
index e1d1a3f..3c624f8 100644
--- a/trafgen_lexer.l
+++ b/trafgen_lexer.l
@@ -120,6 +120,12 @@ ip4_addr ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)
"1ad" { return K_1AD; }
"1q" { return K_1Q; }
+ /* MPLS (Multi Protocol Label Switching) */
+"lbl"|"label" { return K_LABEL; }
+"last" { return K_LAST; }
+"tc"|"tclass" { return K_TC; }
+"exp" { return K_EXP; }
+
/* ARP */
"sha"|"smac" { return K_SHA; }
"spa"|"sip" { return K_SPA; }
@@ -167,6 +173,7 @@ ip4_addr ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)
"eth" { return K_ETH; }
"vlan" { return K_VLAN; }
+"mpls" { return K_MPLS; }
"arp" { return K_ARP; }
"ip4"|"ipv4" { return K_IP4; }
"udp" { return K_UDP; }