summaryrefslogtreecommitdiffstats
path: root/lib/nexthop.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nexthop.h')
-rw-r--r--lib/nexthop.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h
index 7bddee871..8c52631af 100644
--- a/lib/nexthop.h
+++ b/lib/nexthop.h
@@ -144,6 +144,9 @@ struct nexthop {
/* SRv6 localsid info for Endpoint-behaviour */
enum seg6local_action_t nh_seg6local_action;
struct seg6local_context *nh_seg6local_ctx;
+
+ /* SRv6 Headend-behaviour */
+ struct in6_addr *nh_seg6_segs;
};
/* Utility to append one nexthop to another. */
@@ -165,6 +168,8 @@ void nexthop_del_labels(struct nexthop *);
void nexthop_add_seg6local(struct nexthop *nexthop, uint32_t action,
const struct seg6local_context *ctx);
void nexthop_del_seg6local(struct nexthop *nexthop);
+void nexthop_add_seg6(struct nexthop *nexthop, const struct in6_addr* segs);
+void nexthop_del_seg6(struct nexthop *nexthop);
/*
* Allocate a new nexthop object and initialize it from various args.