diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-08-08 22:39:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-08 22:39:34 +0300 |
| commit | 536d478049b4ae7c3d60676a75a56115491d9b6f (patch) | |
| tree | 9f043e62b3f9c8678349377e08a28398b6f3b8c9 /lib/srv6.h | |
| parent | 7b8ca3e2ed6e7f98a63633c7dc91a9f0d12c576a (diff) | |
| parent | 5d027fc79194870d26d14373d5c15f2ea4d58bd5 (diff) | |
Merge pull request #16535 from pguibert6WIND/srv6_nexthop_context
lib: add seg6localContext json attribute in nexthop information
Diffstat (limited to 'lib/srv6.h')
| -rw-r--r-- | lib/srv6.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/srv6.h b/lib/srv6.h index 01b0820133..03ada7fcfc 100644 --- a/lib/srv6.h +++ b/lib/srv6.h @@ -319,6 +319,8 @@ seg6local_action2str(uint32_t action); const char *seg6local_context2str(char *str, size_t size, const struct seg6local_context *ctx, uint32_t action); +void seg6local_context2json(const struct seg6local_context *ctx, + uint32_t action, json_object *json); static inline const char *srv6_sid_ctx2str(char *str, size_t size, const struct srv6_sid_ctx *ctx) |
