FD.io VPP
v17.01-9-ge7dcee4
Vector Packet Processing
|
Go to the source code of this file.
Data Structures | |
struct | mpls_unicast_header_t |
Typedefs | |
typedef u32 | mpls_label_t |
A label value only, i.e. More... | |
typedef enum mpls_eos_bit_t_ | mpls_eos_bit_t |
Enumerations | |
enum | mpls_eos_bit_t_ { MPLS_NON_EOS = 0, MPLS_EOS = 1 } |
Functions | |
static u32 | vnet_mpls_uc_get_label (mpls_label_t label_exp_s_ttl) |
static u32 | vnet_mpls_uc_get_exp (mpls_label_t label_exp_s_ttl) |
static u32 | vnet_mpls_uc_get_s (mpls_label_t label_exp_s_ttl) |
static u32 | vnet_mpls_uc_get_ttl (mpls_label_t label_exp_s_ttl) |
static void | vnet_mpls_uc_set_label (mpls_label_t *label_exp_s_ttl, u32 value) |
static void | vnet_mpls_uc_set_exp (mpls_label_t *label_exp_s_ttl, u32 exp) |
static void | vnet_mpls_uc_set_s (mpls_label_t *label_exp_s_ttl, u32 eos) |
static void | vnet_mpls_uc_set_ttl (mpls_label_t *label_exp_s_ttl, u32 ttl) |
#define FOR_EACH_MPLS_EOS_BIT | ( | _eos | ) | for (_eos = MPLS_NON_EOS; _eos <= MPLS_EOS; _eos++) |
#define MPLS_ENTRY_EOS | ( | mpls | ) | (((mpls) >> MPLS_ENTRY_EOS_SHIFT) & MPLS_ENTRY_EOS_MASK) |
#define MPLS_ENTRY_EOS_BIT (MPLS_ENTRY_EOS_MASK << MPLS_ENTRY_EOS_SHIFT) |
#define MPLS_ENTRY_EOS_OFFSET 2 /* byte offset to EOS bit */ |
#define MPLS_ENTRY_EXP | ( | mpls | ) | (((mpls)>>MPLS_ENTRY_EXP_SHIFT) & MPLS_ENTRY_EXP_MASK) |
#define MPLS_ENTRY_EXP_BITS (MPLS_ENTRY_EXP_MASK << MPLS_ENTRY_EXP_SHIFT) |
#define MPLS_ENTRY_EXP_OFFSET 2 /* byte offset to EXP bits */ |
#define MPLS_ENTRY_LABEL_BITS (MPLS_ENTRY_LABEL_MASK << MPLS_ENTRY_LABEL_SHIFT) |
#define MPLS_ENTRY_TTL | ( | mpls | ) | (((mpls) >> MPLS_ENTRY_TTL_SHIFT) & MPLS_ENTRY_TTL_MASK) |
#define MPLS_ENTRY_TTL_BITS (MPLS_ENTRY_TTL_MASK << MPLS_ENTRY_TTL_SHIFT) |
#define MPLS_ENTRY_TTL_OFFSET 3 /* byte offset to ttl field */ |
#define MPLS_EOS_BITS |
typedef enum mpls_eos_bit_t_ mpls_eos_bit_t |
typedef u32 mpls_label_t |
enum mpls_eos_bit_t_ |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |