History

mpls: Use definition for reserved label checks

In multiple locations there are checks for whether the label in hand is a reserved label or not using the arbritray value of 16. Factor this out into a #define for better maintainability and for documentation.

Robert Shearman committed 11 years ago

Commit a6affd21 parent c961b1c2 files · +13 −10Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/mpls.h+2−0
@@ -41,4 +41,6 @@ struct mpls_label { · 40 unmodified lines
4141 #define MPLS_LABEL_OAMALERT 14 /* RFC3429 */
4242 #define MPLS_LABEL_EXTENSION 15 /* RFC7274 */
4343
44+#define MPLS_LABEL_FIRST_UNRESERVED 16 /* RFC3032 */
45+
4446 #endif /* _UAPI_MPLS_H */