]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Add ifindex to SRv6 SID context
authorCarmine Scarpitta <cscarpit@cisco.com>
Mon, 24 Jun 2024 18:28:50 +0000 (20:28 +0200)
committerCarmine Scarpitta <cscarpit@cisco.com>
Wed, 26 Feb 2025 06:19:51 +0000 (07:19 +0100)
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>
lib/srv6.h

index 3200aee70a8b6e631c38096873071241e9ec9517..467f02a3c9e9564c60beef7658973e59adbd29fc 100644 (file)
@@ -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)