diff options
| author | Mark Stapp <mjs@voltanet.io> | 2020-04-03 15:00:13 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2020-06-01 14:46:32 -0400 |
| commit | ae076fc276a22b2a5331b066964901e65034e73c (patch) | |
| tree | 49c3650ba94ea1bc724000346c7e9eb0429f7f0c /lib/zclient.h | |
| parent | daaeaa21507477e35dc9b455962a28ae38761e16 (diff) | |
lib: add zapi_nexthop2str()
Add a handy 2str api for zapi nexthop debugging.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/zclient.h')
| -rw-r--r-- | lib/zclient.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/zclient.h b/lib/zclient.h index 92ac017e80..5b3b4635a4 100644 --- a/lib/zclient.h +++ b/lib/zclient.h @@ -804,6 +804,8 @@ int zapi_backup_nexthop_from_nexthop(struct zapi_nexthop *znh, const struct nexthop *nh); extern bool zapi_nexthop_update_decode(struct stream *s, struct zapi_route *nhr); +const char *zapi_nexthop2str(const struct zapi_nexthop *znh, char *buf, + int bufsize); /* Decode the zebra error message */ extern bool zapi_error_decode(struct stream *s, enum zebra_error_types *error); |
