FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
mpls_types.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MPLS_IETF_MIN_LABEL   0x00000
 
#define MPLS_IETF_MAX_LABEL   0xfffff
 
#define MPLS_IETF_MIN_RESERVED_LABEL   0x00000
 
#define MPLS_IETF_MAX_RESERVED_LABEL   0x0000f
 
#define MPLS_IETF_MIN_UNRES_LABEL   0x00010
 
#define MPLS_IETF_MAX_UNRES_LABEL   0xfffff
 
#define MPLS_IETF_IPV4_EXPLICIT_NULL_LABEL   0x00000
 
#define MPLS_IETF_ROUTER_ALERT_LABEL   0x00001
 
#define MPLS_IETF_IPV6_EXPLICIT_NULL_LABEL   0x00002
 
#define MPLS_IETF_IMPLICIT_NULL_LABEL   0x00003
 
#define MPLS_IETF_ELI_LABEL   0x00007
 
#define MPLS_IETF_GAL_LABEL   0x0000D
 
#define MPLS_IETF_ENTROPY_LABEL   0x0000E
 
#define MPLS_IETF_IPV4_EXPLICIT_NULL_STRING   "ip4-explicit-null"
 
#define MPLS_IETF_IPV4_EXPLICIT_NULL_BRIEF_STRING   "e-nul"
 
#define MPLS_IETF_IMPLICIT_NULL_STRING   "implicit-null"
 
#define MPLS_IETF_IMPLICIT_NULL_BRIEF_STRING   "i-nul"
 
#define MPLS_IETF_ROUTER_ALERT_STRING   "router-alert"
 
#define MPLS_IETF_ROUTER_ALERT_BRIEF_STRING   "r-alt"
 
#define MPLS_IETF_IPV6_EXPLICIT_NULL_STRING   "ipv6-explicit-null"
 
#define MPLS_IETF_IPV6_EXPLICIT_NULL_BRIEF_STRING   "v6enl"
 
#define MPLS_IETF_ELI_STRING   "entropy-label-indicator"
 
#define MPLS_IETF_ELI_BRIEF_STRING   "eli"
 
#define MPLS_IETF_GAL_STRING   "gal"
 
#define MPLS_IETF_GAL_BRIEF_STRING   "gal"
 
#define MPLS_LABEL_INVALID   (MPLS_IETF_MAX_LABEL+1)
 
#define MPLS_LABEL_POP   (MPLS_IETF_MAX_LABEL+2)
 A value that is explicit about the end of the LSP. More...
 
#define MPLS_LABEL_IS_REAL(_lbl)
 
#define MPLS_IS_REPLICATE   0x80000000
 The top bit of the index, which is the result of the MPLS lookup is used to determine if the DPO is a load-balance or a replicate. More...
 

Macro Definition Documentation

◆ MPLS_IETF_ELI_BRIEF_STRING

#define MPLS_IETF_ELI_BRIEF_STRING   "eli"

Definition at line 44 of file mpls_types.h.

◆ MPLS_IETF_ELI_LABEL

#define MPLS_IETF_ELI_LABEL   0x00007

Definition at line 31 of file mpls_types.h.

◆ MPLS_IETF_ELI_STRING

#define MPLS_IETF_ELI_STRING   "entropy-label-indicator"

Definition at line 43 of file mpls_types.h.

◆ MPLS_IETF_ENTROPY_LABEL

#define MPLS_IETF_ENTROPY_LABEL   0x0000E

Definition at line 33 of file mpls_types.h.

◆ MPLS_IETF_GAL_BRIEF_STRING

#define MPLS_IETF_GAL_BRIEF_STRING   "gal"

Definition at line 46 of file mpls_types.h.

◆ MPLS_IETF_GAL_LABEL

#define MPLS_IETF_GAL_LABEL   0x0000D

Definition at line 32 of file mpls_types.h.

◆ MPLS_IETF_GAL_STRING

#define MPLS_IETF_GAL_STRING   "gal"

Definition at line 45 of file mpls_types.h.

◆ MPLS_IETF_IMPLICIT_NULL_BRIEF_STRING

#define MPLS_IETF_IMPLICIT_NULL_BRIEF_STRING   "i-nul"

Definition at line 38 of file mpls_types.h.

◆ MPLS_IETF_IMPLICIT_NULL_LABEL

#define MPLS_IETF_IMPLICIT_NULL_LABEL   0x00003

Definition at line 30 of file mpls_types.h.

◆ MPLS_IETF_IMPLICIT_NULL_STRING

#define MPLS_IETF_IMPLICIT_NULL_STRING   "implicit-null"

Definition at line 37 of file mpls_types.h.

◆ MPLS_IETF_IPV4_EXPLICIT_NULL_BRIEF_STRING

#define MPLS_IETF_IPV4_EXPLICIT_NULL_BRIEF_STRING   "e-nul"

Definition at line 36 of file mpls_types.h.

◆ MPLS_IETF_IPV4_EXPLICIT_NULL_LABEL

#define MPLS_IETF_IPV4_EXPLICIT_NULL_LABEL   0x00000

Definition at line 27 of file mpls_types.h.

◆ MPLS_IETF_IPV4_EXPLICIT_NULL_STRING

#define MPLS_IETF_IPV4_EXPLICIT_NULL_STRING   "ip4-explicit-null"

Definition at line 35 of file mpls_types.h.

◆ MPLS_IETF_IPV6_EXPLICIT_NULL_BRIEF_STRING

#define MPLS_IETF_IPV6_EXPLICIT_NULL_BRIEF_STRING   "v6enl"

Definition at line 42 of file mpls_types.h.

◆ MPLS_IETF_IPV6_EXPLICIT_NULL_LABEL

#define MPLS_IETF_IPV6_EXPLICIT_NULL_LABEL   0x00002

Definition at line 29 of file mpls_types.h.

◆ MPLS_IETF_IPV6_EXPLICIT_NULL_STRING

#define MPLS_IETF_IPV6_EXPLICIT_NULL_STRING   "ipv6-explicit-null"

Definition at line 41 of file mpls_types.h.

◆ MPLS_IETF_MAX_LABEL

#define MPLS_IETF_MAX_LABEL   0xfffff

Definition at line 19 of file mpls_types.h.

◆ MPLS_IETF_MAX_RESERVED_LABEL

#define MPLS_IETF_MAX_RESERVED_LABEL   0x0000f

Definition at line 22 of file mpls_types.h.

◆ MPLS_IETF_MAX_UNRES_LABEL

#define MPLS_IETF_MAX_UNRES_LABEL   0xfffff

Definition at line 25 of file mpls_types.h.

◆ MPLS_IETF_MIN_LABEL

#define MPLS_IETF_MIN_LABEL   0x00000

Definition at line 18 of file mpls_types.h.

◆ MPLS_IETF_MIN_RESERVED_LABEL

#define MPLS_IETF_MIN_RESERVED_LABEL   0x00000

Definition at line 21 of file mpls_types.h.

◆ MPLS_IETF_MIN_UNRES_LABEL

#define MPLS_IETF_MIN_UNRES_LABEL   0x00010

Definition at line 24 of file mpls_types.h.

◆ MPLS_IETF_ROUTER_ALERT_BRIEF_STRING

#define MPLS_IETF_ROUTER_ALERT_BRIEF_STRING   "r-alt"

Definition at line 40 of file mpls_types.h.

◆ MPLS_IETF_ROUTER_ALERT_LABEL

#define MPLS_IETF_ROUTER_ALERT_LABEL   0x00001

Definition at line 28 of file mpls_types.h.

◆ MPLS_IETF_ROUTER_ALERT_STRING

#define MPLS_IETF_ROUTER_ALERT_STRING   "router-alert"

Definition at line 39 of file mpls_types.h.

◆ MPLS_IS_REPLICATE

#define MPLS_IS_REPLICATE   0x80000000

The top bit of the index, which is the result of the MPLS lookup is used to determine if the DPO is a load-balance or a replicate.

Definition at line 66 of file mpls_types.h.

◆ MPLS_LABEL_INVALID

#define MPLS_LABEL_INVALID   (MPLS_IETF_MAX_LABEL+1)

Definition at line 48 of file mpls_types.h.

◆ MPLS_LABEL_IS_REAL

#define MPLS_LABEL_IS_REAL (   _lbl)
Value:
(((_lbl) >= MPLS_IETF_MIN_UNRES_LABEL) && \
#define MPLS_IETF_MIN_UNRES_LABEL
Definition: mpls_types.h:24
#define MPLS_IETF_MAX_UNRES_LABEL
Definition: mpls_types.h:25

Definition at line 58 of file mpls_types.h.

◆ MPLS_LABEL_POP

#define MPLS_LABEL_POP   (MPLS_IETF_MAX_LABEL+2)

A value that is explicit about the end of the LSP.

Specifying a label value is needed when the mode configuration (pipe/uniform) is also requested. imp-null implies a label swap. pop can be used for a deag.

Definition at line 56 of file mpls_types.h.