From: Carmine Scarpitta Date: Mon, 20 Mar 2023 20:48:27 +0000 (+0100) Subject: lib: Define default values for SRv6 flavors attrs X-Git-Tag: base_9.1~88^2~106 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=79e37f0dedbfea260047dccba74efe04126e1bca;p=matthieu%2Ffrr.git 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 --- diff --git a/lib/srv6.h b/lib/srv6.h index 111963daa2..7c8c6b4a65 100644 --- a/lib/srv6.h +++ b/lib/srv6.h @@ -30,6 +30,10 @@ extern "C" { #define UNSET_SRV6_FLV_OP(OPS,OP) (OPS) &= ~(1 << OP) #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 { INLINE, ENCAP,