summaryrefslogtreecommitdiff
path: root/lib/srv6.h
diff options
context:
space:
mode:
authorCarmine Scarpitta <cscarpit@cisco.com>2024-06-24 20:28:50 +0200
committerCarmine Scarpitta <cscarpit@cisco.com>2025-02-26 07:19:51 +0100
commitfeff426771999343008afe05efe680aa7cf63985 (patch)
tree1b464dbfce90c7885cbcc26fa61caa9cce200e3d /lib/srv6.h
parent77b52da131293041c5074a3f9944a1709872e2f4 (diff)
lib: Add ifindex to SRv6 SID context
The uA behavior is associated with an interface and the IP address of the nexthop. However, the current SID context data structure only includes the IP address. It lacks the interface. This commit extends the SID context data structure by adding the ifindex. This extension allows daemons to allocate uA SIDs with the required interface and IP address. Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
Diffstat (limited to 'lib/srv6.h')
-rw-r--r--lib/srv6.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/srv6.h b/lib/srv6.h
index 3200aee70a..467f02a3c9 100644
--- a/lib/srv6.h
+++ b/lib/srv6.h
@@ -321,6 +321,7 @@ struct srv6_sid_ctx {
struct in_addr nh4;
struct in6_addr nh6;
vrf_id_t vrf_id;
+ ifindex_t ifindex;
};
static inline const char *seg6_mode2str(enum seg6_mode_t mode)