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_l2.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_l2.h')
-rw-r--r-- | trafgen_l2.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/trafgen_l2.h b/trafgen_l2.h index 9beb2aa..14f0e84 100644 --- a/trafgen_l2.h +++ b/trafgen_l2.h @@ -28,6 +28,13 @@ enum vlan_field { VLAN_ETYPE, }; +enum mpls_field { + MPLS_LABEL, + MPLS_TC, + MPLS_LAST, + MPLS_TTL, +}; + extern void protos_l2_init(void); #endif /* TRAFGEN_L2_H */ |