summaryrefslogtreecommitdiff
path: root/lib/zclient.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-08-08 15:51:05 -0300
committerRenato Westphal <renato@opensourcerouting.org>2019-09-06 21:06:11 -0300
commitb3c49d0e772f4b555c59f72f2e1aa92be33c1510 (patch)
treea9b414951c8a18761d8128e12159a5ce1bae76cf /lib/zclient.h
parent635a039eef1a57fae5ff979451814951d8fb3ac5 (diff)
lib, zebra: enhance the MPLS zapi messages
* Add ability to specify the nexthop type; * Add ability to install or not a FTN (in addition to an LSP). These two additions will be useful to install local SR Prefix-SIDs configured with the no-PHP option. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/zclient.h')
-rw-r--r--lib/zclient.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/lib/zclient.h b/lib/zclient.h
index a3238a9161..e0da1cbe32 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -396,14 +396,22 @@ struct zapi_route {
};
struct zapi_labels {
+ uint8_t message;
+#define ZAPI_LABELS_FTN 0x01
enum lsp_types_t type;
- struct prefix prefix;
- union g_addr nexthop;
- ifindex_t ifindex;
- uint8_t route_type;
- unsigned short route_instance;
mpls_label_t local_label;
- mpls_label_t remote_label;
+ struct {
+ struct prefix prefix;
+ uint8_t type;
+ unsigned short instance;
+ } route;
+ struct {
+ enum nexthop_types_t type;
+ int family;
+ union g_addr address;
+ ifindex_t ifindex;
+ mpls_label_t label;
+ } nexthop;
};
struct zapi_pw {