lib: Define default values for SRv6 flavors attrs

When installing a local SID in the Linux kernel, `lcblock_len` and
`lcnode_fn_len` Netlink attributes are optional. When omitted, the
kernel uses the default values: lcblock_len=32 and lcnode_fn_len=16.
Let's use the same default values in FRR.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
This commit is contained in:
Carmine Scarpitta 2023-03-20 21:48:27 +01:00
parent f4d2d9ba0a
commit 79e37f0ded

View File

@ -30,6 +30,10 @@ extern "C" {
#define UNSET_SRV6_FLV_OP(OPS,OP) (OPS) &= ~(1 << OP) #define UNSET_SRV6_FLV_OP(OPS,OP) (OPS) &= ~(1 << OP)
#define RESET_SRV6_FLV_OP(OPS) (OPS) = 0 #define RESET_SRV6_FLV_OP(OPS) (OPS) = 0
/* SRv6 Flavors default values */
#define ZEBRA_DEFAULT_SEG6_LOCAL_FLV_LCBLOCK_LEN 32
#define ZEBRA_DEFAULT_SEG6_LOCAL_FLV_LCNODE_FN_LEN 16
enum seg6_mode_t { enum seg6_mode_t {
INLINE, INLINE,
ENCAP, ENCAP,