diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-05-08 16:41:05 +0200 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-06-13 14:54:16 +0200 |
| commit | f00554ed563b8a4ce0cc7fff7ea107d3ae8aa6b1 (patch) | |
| tree | 5b90707e05fe97f4f55ee206dff91c75dfe1d16c /lib/srv6.h | |
| parent | bf10e4437e476c8550f4f146d34cce0828445a5e (diff) | |
lib: Add function to copy an SRv6 locator
Add a new function to copy an SRv6 locator.
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
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 04f560b267..66f1854dab 100644 --- a/lib/srv6.h +++ b/lib/srv6.h @@ -311,6 +311,8 @@ extern struct srv6_locator_chunk *srv6_locator_chunk_alloc(void); extern void srv6_locator_free(struct srv6_locator *locator); extern void srv6_locator_chunk_list_free(void *data); extern void srv6_locator_chunk_free(struct srv6_locator_chunk **chunk); +extern void srv6_locator_copy(struct srv6_locator *copy, + const struct srv6_locator *locator); json_object *srv6_locator_chunk_json(const struct srv6_locator_chunk *chunk); json_object *srv6_locator_json(const struct srv6_locator *loc); json_object *srv6_locator_detailed_json(const struct srv6_locator *loc); |
