X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/4011b8d35d4c5e86fdb9998338126ffbf28745a7..296d466cd6bbf2f7e75e15bb6a01268e88c76ed0:/mpls.h diff --git a/mpls.h b/mpls.h index ae1c97e6..d7e8fc14 100644 --- a/mpls.h +++ b/mpls.h @@ -1,4 +1,4 @@ -/* @(#) $Header: /tcpdump/master/tcpdump/mpls.h,v 1.1 2004-06-14 14:47:58 hannes Exp $ (LBL) +/* * Copyright (C) 2001 WIDE Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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)