]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Add support for flags to the SRv6 locator
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Thu, 27 Oct 2022 16:32:19 +0000 (18:32 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Fri, 28 Oct 2022 23:31:59 +0000 (01:31 +0200)
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>
lib/srv6.h

index 6e0c3ce99d1d94643ffe291f6655677ba84b0685..a3575583ae44c640260a31fb99462347f752552b 100644 (file)
@@ -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 {