]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/zclient.h
zapi: add support for routes with multiple labels
[mirror_frr.git] / lib / zclient.h
index 2e450ed398f212caac8e56556d9b280d5161c63f..40ddbf62df2d121337fe05b39840db37fcd0b780 100644 (file)
@@ -230,7 +230,10 @@ struct zapi_nexthop {
        enum nexthop_types_t type;
        ifindex_t ifindex;
        union g_addr gate;
-       mpls_label_t label;
+
+       /* MPLS labels for BGP-LU or Segment Routing */
+       uint8_t label_num;
+       mpls_label_t labels[MPLS_MAX_LABELS];
 };
 
 struct zapi_route {