]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Support of MPLS stack in static protocol and route tables
authorJan Moskyto Matejka <mq@ucw.cz>
Fri, 26 Feb 2016 10:48:13 +0000 (11:48 +0100)
committerJan Moskyto Matejka <mq@ucw.cz>
Thu, 7 Apr 2016 08:08:43 +0000 (10:08 +0200)
lib/mpls.h [new file with mode: 0644]

diff --git a/lib/mpls.h b/lib/mpls.h
new file mode 100644 (file)
index 0000000..8673444
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ *     BIRD Internet Routing Daemon -- MPLS manipulation
+ *
+ *     (c) 2016 Jan Matejka <mq@ucw.cz>
+ *     (c) 2016 CZ.NIC z.s.p.o.
+ *
+ *     Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+#ifndef _BIRD_MPLS_H_
+#define _BIRD_MPLS_H_
+
+#define MPLS_STACK_LENGTH   8 /* Adjust this if you need deeper MPLS stack */
+
+typedef struct mpls_stack {
+  u8 len;
+  u32 label[MPLS_STACK_LENGTH];
+} mpls_stack;
+
+#endif