From 9b7491e1fc04bf71842865906dbf9a36e62bdb28 Mon Sep 17 00:00:00 2001 From: Carmine Scarpitta Date: Thu, 27 Oct 2022 18:32:19 +0200 Subject: [PATCH] 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 --- lib/srv6.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/srv6.h b/lib/srv6.h index 6e0c3ce99d1d..a3575583ae44 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 {