diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2016-02-08 08:01:52 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2016-02-23 13:19:34 +0100 |
commit | 116835ed0d245f3e73173f2f2057265827416ce6 (patch) | |
tree | 052f654f670d8ce6ce0251124bd130c3c05622f7 /trafgen_proto.h | |
parent | f02fcdbd2cb4dc041783def773e446c179bd57f1 (diff) |
trafgen: l2: Add MPLS header generation
Add support for MPLS header creating with fields:
Label, TClass, Bottom-Stack, TTL
By default S-field is set to 1 (last label), but resets to 0
if lower MPLS header is added.
Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r-- | trafgen_proto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h index 10ded79..31ac1c8 100644 --- a/trafgen_proto.h +++ b/trafgen_proto.h @@ -14,6 +14,7 @@ enum proto_id { PROTO_ETH, PROTO_VLAN, PROTO_ARP, + PROTO_MPLS, PROTO_IP4, PROTO_IP6, PROTO_UDP, |