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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -41,4 +41,6 @@ struct mpls_label { · 40 unmodified lines | ||
| 41 | 41 | #define MPLS_LABEL_OAMALERT 14 /* RFC3429 */ |
| 42 | 42 | #define MPLS_LABEL_EXTENSION 15 /* RFC7274 */ |
| 43 | 43 | |
| 44 | +#define MPLS_LABEL_FIRST_UNRESERVED 16 /* RFC3032 */ | |
| 45 | + | |
| 44 | 46 | #endif /* _UAPI_MPLS_H */ |