summaryrefslogtreecommitdiffstats
path: root/include/linux/mpls.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/mpls.h')
-rw-r--r--include/linux/mpls.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/mpls.h b/include/linux/mpls.h
new file mode 100644
index 000000000..ae1a188c0
--- /dev/null
+++ b/include/linux/mpls.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _LINUX_MPLS_H
+#define _LINUX_MPLS_H
+
+#include <uapi/linux/mpls.h>
+
+#define MPLS_TTL_MASK (MPLS_LS_TTL_MASK >> MPLS_LS_TTL_SHIFT)
+#define MPLS_BOS_MASK (MPLS_LS_S_MASK >> MPLS_LS_S_SHIFT)
+#define MPLS_TC_MASK (MPLS_LS_TC_MASK >> MPLS_LS_TC_SHIFT)
+#define MPLS_LABEL_MASK (MPLS_LS_LABEL_MASK >> MPLS_LS_LABEL_SHIFT)
+
+#endif /* _LINUX_MPLS_H */