summaryrefslogtreecommitdiffstats
path: root/lib/srv6.h
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-27 18:32:19 +0200
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-29 01:31:59 +0200
commit9b7491e1fc04bf71842865906dbf9a36e62bdb28 (patch)
treee4d24296acd8318d009bc739f117bd5b82f735e1 /lib/srv6.h
parentMerge pull request #11673 from cscarpitta/srv6-per-vrf-sid (diff)
downloadfrr-9b7491e1fc04bf71842865906dbf9a36e62bdb28.tar.xz
frr-9b7491e1fc04bf71842865906dbf9a36e62bdb28.zip
lib: Add support for flags to the SRv6 locator
In this commit, we introduce the ability to specify flags for an SRv6 locator. Flags can be used to specify the properties of the locator. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'lib/srv6.h')
-rw-r--r--lib/srv6.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/srv6.h b/lib/srv6.h
index 6e0c3ce99..a3575583a 100644
--- a/lib/srv6.h
+++ b/lib/srv6.h
@@ -92,6 +92,8 @@ struct srv6_locator {
bool status_up;
struct list *chunks;
+ uint8_t flags;
+
QOBJ_FIELDS;
};
DECLARE_QOBJ_TYPE(srv6_locator);
@@ -116,6 +118,8 @@ struct srv6_locator_chunk {
uint8_t proto;
uint16_t instance;
uint32_t session_id;
+
+ uint8_t flags;
};
struct nexthop_srv6 {