summaryrefslogtreecommitdiffstats
path: root/lib/srv6.h
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-03-20 21:48:27 +0100
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2023-09-11 17:35:03 +0200
commit79e37f0dedbfea260047dccba74efe04126e1bca (patch)
tree4581b337c0f2da208fe1df7ba2f91fccc43221c3 /lib/srv6.h
parentzebra: Extend `rt_netlink.c` to parse SRv6 flavors (diff)
downloadfrr-79e37f0dedbfea260047dccba74efe04126e1bca.tar.xz
frr-79e37f0dedbfea260047dccba74efe04126e1bca.zip
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>
Diffstat (limited to 'lib/srv6.h')
-rw-r--r--lib/srv6.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/srv6.h b/lib/srv6.h
index 111963daa..7c8c6b4a6 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,