session: api to add new transport types
[vpp.git] / src / vnet / mpls / mpls_types.h
index b1075cd..260cd8b 100644 (file)
@@ -30,6 +30,7 @@
 #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_LABEL_INVALID (MPLS_IETF_MAX_LABEL+1)
 
+/**
+ * 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.
+ */
+#define MPLS_LABEL_POP (MPLS_IETF_MAX_LABEL+2)
+
 #define MPLS_LABEL_IS_REAL(_lbl) \
-    (((_lbl) > MPLS_IETF_MIN_UNRES_LABEL) &&   \
+    (((_lbl) >= MPLS_IETF_MIN_UNRES_LABEL) &&  \
      ((_lbl) <= MPLS_IETF_MAX_UNRES_LABEL))
 
 /**