summaryrefslogtreecommitdiffstats
path: root/lib/nexthop.h
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2016-04-15 19:29:51 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 15:30:53 +0200
commit54d48ea1537864dda453e5773f87be442ad2b7f7 (patch)
tree2a1ac9b0c4a889f710bec78c12d1c86adfb3edbe /lib/nexthop.h
parentQuagga: Basic definitions for MPLS (diff)
downloadfrr-54d48ea1537864dda453e5773f87be442ad2b7f7.tar.xz
frr-54d48ea1537864dda453e5773f87be442ad2b7f7.zip
Quagga: Definitions for static LSPs
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Ticket: CM-4804, ... Reviewed By: CCR-3084 Testing Done: Not relevant
Diffstat (limited to 'lib/nexthop.h')
-rw-r--r--lib/nexthop.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h
index 39e8b5425..801904306 100644
--- a/lib/nexthop.h
+++ b/lib/nexthop.h
@@ -25,6 +25,7 @@
#define _LIB_NEXTHOP_H
#include "prefix.h"
+#include "mpls.h"
/* Maximum next hop string length - gateway + ifindex */
#define NEXTHOP_STRLEN (INET6_ADDRSTRLEN + 30)
@@ -44,6 +45,14 @@ enum nexthop_types_t
NEXTHOP_TYPE_BLACKHOLE, /* Null0 nexthop. */
};
+/* Nexthop label structure. */
+struct nexthop_label
+{
+ u_int8_t num_labels;
+ u_int8_t reserved[3];
+ mpls_label_t label[0]; /* 1 or more labels. */
+};
+
/* Nexthop structure. */
struct nexthop
{