diff options
author | Bill Fenner <fenner@gmail.com> | 2020-12-11 06:20:31 -0800 |
---|---|---|
committer | fxlb <devel.fx.lebail@orange.fr> | 2021-01-06 08:52:44 +0000 |
commit | 5081474eb5f992f68fa2188761898a75960a4519 (patch) | |
tree | 78baaab2d9cda69c3df1e5fd19d168562c19dc63 /mpls.h | |
parent | f853e73acf39658125ce42861e49ce4a181611d3 (diff) | |
download | tcpdump-5081474eb5f992f68fa2188761898a75960a4519.tar.gz |
MPLS: rename the "exp" field to "tc"
RFC5462 (https://tools.ietf.org/html/rfc5462) renamed the
MPLS "EXP" field to "Traffic Class" in 2009. Use "tc" as an
abbreviation for this field name.
Diffstat (limited to 'mpls.h')
-rw-r--r-- | mpls.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,14 +28,14 @@ #define LABEL_MASK 0xfffff000 #define LABEL_SHIFT 12 -#define EXP_MASK 0x00000e00 -#define EXP_SHIFT 9 +#define TC_MASK 0x00000e00 +#define TC_SHIFT 9 #define STACK_MASK 0x00000100 #define STACK_SHIFT 8 #define TTL_MASK 0x000000ff #define TTL_SHIFT 0 #define MPLS_LABEL(x) (((x) & LABEL_MASK) >> LABEL_SHIFT) -#define MPLS_EXP(x) (((x) & EXP_MASK) >> EXP_SHIFT) +#define MPLS_TC(x) (((x) & TC_MASK) >> TC_SHIFT) #define MPLS_STACK(x) (((x) & STACK_MASK) >> STACK_SHIFT) #define MPLS_TTL(x) (((x) & TTL_MASK) >> TTL_SHIFT) |