Go to the source code of this file.
◆ FOR_EACH_MPLS_EOS_BIT
◆ MPLS_ENTRY_EOS
◆ MPLS_ENTRY_EOS_BIT
◆ MPLS_ENTRY_EOS_MASK
#define MPLS_ENTRY_EOS_MASK 0x01 /* EOS bit in its byte */ |
◆ MPLS_ENTRY_EOS_OFFSET
#define MPLS_ENTRY_EOS_OFFSET 2 /* byte offset to EOS bit */ |
◆ MPLS_ENTRY_EOS_SHIFT
#define MPLS_ENTRY_EOS_SHIFT 8 |
◆ MPLS_ENTRY_EXP
◆ MPLS_ENTRY_EXP_BITS
◆ MPLS_ENTRY_EXP_MASK
#define MPLS_ENTRY_EXP_MASK 0x07 |
◆ MPLS_ENTRY_EXP_OFFSET
#define MPLS_ENTRY_EXP_OFFSET 2 /* byte offset to EXP bits */ |
◆ MPLS_ENTRY_EXP_SHIFT
#define MPLS_ENTRY_EXP_SHIFT 9 |
◆ MPLS_ENTRY_LABEL_BITS
◆ MPLS_ENTRY_LABEL_MASK
#define MPLS_ENTRY_LABEL_MASK 0x000fffff |
◆ MPLS_ENTRY_LABEL_OFFSET
#define MPLS_ENTRY_LABEL_OFFSET 0 |
◆ MPLS_ENTRY_LABEL_SHIFT
#define MPLS_ENTRY_LABEL_SHIFT 12 |
◆ MPLS_ENTRY_TTL
◆ MPLS_ENTRY_TTL_BITS
◆ MPLS_ENTRY_TTL_MASK
#define MPLS_ENTRY_TTL_MASK 0xff |
◆ MPLS_ENTRY_TTL_OFFSET
#define MPLS_ENTRY_TTL_OFFSET 3 /* byte offset to ttl field */ |
◆ MPLS_ENTRY_TTL_SHIFT
#define MPLS_ENTRY_TTL_SHIFT 0 |
◆ MPLS_EOS_BITS
◆ MPLS_LABEL_DEFAULT_EXP
#define MPLS_LABEL_DEFAULT_EXP 0 |
The Default EXP added to MPLS label headers when no other value is available.
Definition at line 55 of file packet.h.
◆ MPLS_LABEL_DEFAULT_TTL
#define MPLS_LABEL_DEFAULT_TTL 64 |
The Default TTL added to MPLS label headers when no other value is available.
Definition at line 50 of file packet.h.
◆ mpls_eos_bit_t
◆ mpls_label_t
A label value only, i.e.
20bits.
Definition at line 26 of file packet.h.
◆ mpls_eos_bit_t_
Enumerator |
---|
MPLS_NON_EOS | |
MPLS_EOS | |
Definition at line 36 of file packet.h.
◆ ip_dscp_to_mpls_exp()
When in uniform mode convert an IPv[46] DSCP value to an MPLS EXP value.
Definition at line 60 of file packet.h.
◆ mpls_exp_to_ip_dscp()
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 68 of file packet.h.
◆ vnet_mpls_uc_get_exp()
◆ vnet_mpls_uc_get_label()
◆ vnet_mpls_uc_get_s()
◆ vnet_mpls_uc_get_ttl()
◆ vnet_mpls_uc_set_exp()
static void vnet_mpls_uc_set_exp |
( |
mpls_label_t * |
label_exp_s_ttl, |
|
|
u32 |
exp |
|
) |
| |
|
inlinestatic |
◆ vnet_mpls_uc_set_label()
static void vnet_mpls_uc_set_label |
( |
mpls_label_t * |
label_exp_s_ttl, |
|
|
u32 |
value |
|
) |
| |
|
inlinestatic |
◆ vnet_mpls_uc_set_s()
◆ vnet_mpls_uc_set_ttl()
static void vnet_mpls_uc_set_ttl |
( |
mpls_label_t * |
label_exp_s_ttl, |
|
|
u32 |
ttl |
|
) |
| |
|
inlinestatic |