summaryrefslogtreecommitdiff
path: root/lib/zclient.h
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-01-09 10:11:35 -0500
committerGitHub <noreply@github.com>2024-01-09 10:11:35 -0500
commitd5a0a70bbf109d71266d77540876e1d9e6d3dec8 (patch)
tree8124c2677d655052431458faa0a9c57e7afb4a16 /lib/zclient.h
parent92d0242a5172890c0429817ed209dc516912ab27 (diff)
parentd8477d4bb534e37121c08b358fd923c703540ae0 (diff)
Merge pull request #15001 from pguibert6WIND/zebra_nexthop_rework
Zebra nexthop rework
Diffstat (limited to 'lib/zclient.h')
-rw-r--r--lib/zclient.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h
index ba7a3a6308..8d7faeb223 100644
--- a/lib/zclient.h
+++ b/lib/zclient.h
@@ -1166,6 +1166,15 @@ static inline void zapi_route_set_blackhole(struct zapi_route *api,
SET_FLAG(api->message, ZAPI_MESSAGE_NEXTHOP);
};
+static inline void zapi_route_set_nhg_id(struct zapi_route *api,
+ uint32_t *nhg_id)
+{
+ api->nexthop_num = 0;
+ api->nhgid = *nhg_id;
+ if (api->nhgid)
+ SET_FLAG(api->message, ZAPI_MESSAGE_NHG);
+};
+
extern enum zclient_send_status
zclient_send_mlag_register(struct zclient *client, uint32_t bit_map);
extern enum zclient_send_status