Go to the source code of this file.
#define MPLS_ENTRY_EOS_MASK 0x01 /* EOS bit in its byte */ |
#define MPLS_ENTRY_EOS_OFFSET 2 /* byte offset to EOS bit */ |
#define MPLS_ENTRY_EOS_SHIFT 8 |
#define MPLS_ENTRY_EXP_MASK 0x07 |
#define MPLS_ENTRY_EXP_OFFSET 2 /* byte offset to EXP bits */ |
#define MPLS_ENTRY_EXP_SHIFT 9 |
#define MPLS_ENTRY_LABEL_MASK 0x000fffff |
#define MPLS_ENTRY_LABEL_OFFSET 0 |
#define MPLS_ENTRY_LABEL_SHIFT 12 |
#define MPLS_ENTRY_TTL_MASK 0xff |
#define MPLS_ENTRY_TTL_OFFSET 3 /* byte offset to ttl field */ |
#define MPLS_ENTRY_TTL_SHIFT 0 |
#define MPLS_LABEL_DEFAULT_EXP 0 |
The Default EXP added to MPLS label headers when no other value is available.
Definition at line 53 of file packet.h.
#define MPLS_LABEL_DEFAULT_TTL 64 |
The Default TTL added to MPLS label headers when no other value is available.
Definition at line 48 of file packet.h.
A label value only, i.e.
20bits.
Definition at line 24 of file packet.h.
Enumerator |
---|
MPLS_NON_EOS |
|
MPLS_EOS |
|
Definition at line 34 of file packet.h.
static u8 ip_dscp_to_mpls_exp |
( |
u8 |
tos | ) |
|
|
inlinestatic |
When in uniform mode convert an IPv[46] DSCP value to an MPLS EXP value.
Definition at line 58 of file packet.h.
static u8 mpls_exp_to_ip_dscp |
( |
u8 |
exp | ) |
|
|
inlinestatic |
When in uniform mode convert an MPLS EXP value to an IPv[46] DSCP value.
Definition at line 66 of file packet.h.
static void vnet_mpls_uc_set_exp |
( |
mpls_label_t * |
label_exp_s_ttl, |
|
|
u32 |
exp |
|
) |
| |
|
inlinestatic |
static void vnet_mpls_uc_set_label |
( |
mpls_label_t * |
label_exp_s_ttl, |
|
|
u32 |
value |
|
) |
| |
|
inlinestatic |
static void vnet_mpls_uc_set_ttl |
( |
mpls_label_t * |
label_exp_s_ttl, |
|
|
u32 |
ttl |
|
) |
| |
|
inlinestatic |