From a64448baa6150a7431d55e0e65d0b51d62c4b5be Mon Sep 17 00:00:00 2001 From: Don Slice Date: Thu, 2 Feb 2017 12:58:33 -0500 Subject: zebra: labeled unicast handling Support install of labeled-unicast routes by a client. This would be BGP, in order to install routes corresponding to AFI/SAFI 1/4 (IPv4) or 2/4 (IPv6). Convert labeled-unicast routes into label forwarding entries (i.e., transit LSPs) when there is a static label binding. Signed-off-by: Don Slice --- lib/zclient.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/zclient.h') diff --git a/lib/zclient.h b/lib/zclient.h index a5a1b530c5..a54bf420d3 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -178,6 +178,7 @@ struct zclient #define ZAPI_MESSAGE_TAG 0x10 #define ZAPI_MESSAGE_MTU 0x20 #define ZAPI_MESSAGE_SRCPFX 0x40 +#define ZAPI_MESSAGE_LABEL 0x80 /* Zserv protocol message header */ struct zserv_header @@ -210,6 +211,9 @@ struct zapi_ipv4 u_char ifindex_num; ifindex_t *ifindex; + u_char label_num; + unsigned int *label; + u_char distance; u_int32_t metric; @@ -301,6 +305,9 @@ struct zapi_ipv6 u_char ifindex_num; ifindex_t *ifindex; + u_char label_num; + unsigned int *label; + u_char distance; u_int32_t metric; -- cgit v1.2.3