summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmytro Shytyi <dmytro.shytyi@6wind.com>2023-07-26 18:43:51 +0200
committerDmytro Shytyi <dmytro.shytyi@6wind.com>2023-09-20 15:07:15 +0200
commit21eb1449c71434bbdb11c7e112aa92d4a2bc1f53 (patch)
tree82e588fad60ef65eee03b67749d87211b5e79209
parentb417f5cd3937f495e41ef453982b80fb008cafd4 (diff)
staticd: add srv6 static route seg information
Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
-rw-r--r--staticd/static_routes.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/staticd/static_routes.h b/staticd/static_routes.h
index 3be6fd6b14..548148b187 100644
--- a/staticd/static_routes.h
+++ b/staticd/static_routes.h
@@ -9,6 +9,7 @@
#include "lib/bfd.h"
#include "lib/mpls.h"
+#include "lib/srv6.h"
#include "table.h"
#include "memory.h"
@@ -27,6 +28,12 @@ struct static_nh_label {
mpls_label_t label[MPLS_MAX_LABELS];
};
+/* Static route seg information */
+struct static_nh_seg {
+ int num_segs;
+ struct in6_addr seg[SRV6_MAX_SIDS];
+};
+
enum static_blackhole_type {
STATIC_BLACKHOLE_DROP = 0,
STATIC_BLACKHOLE_NULL,
@@ -129,6 +136,9 @@ struct static_nexthop {
/* Label information */
struct static_nh_label snh_label;
+ /* SRv6 Seg information */
+ struct static_nh_seg snh_seg;
+
/*
* Whether to pretend the nexthop is directly attached to the specified
* link. Only meaningful when both a gateway address and interface name