From: Carmine Scarpitta Date: Thu, 20 Feb 2025 09:07:08 +0000 (+0100) Subject: lib: Add enum for SR Policy Headend Behaviors X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fe6b452b441a02d48bc1dbe586faccb30f54144f;p=mirror%2Ffrr.git lib: Add enum for SR Policy Headend Behaviors This commit introduces an enumeration to represent SR Policy Headend Behaviors as specified in RFC 8986. Signed-off-by: Carmine Scarpitta --- diff --git a/lib/srv6.h b/lib/srv6.h index bd80253b55..24b387ec4e 100644 --- a/lib/srv6.h +++ b/lib/srv6.h @@ -41,6 +41,15 @@ extern "C" { #define ZEBRA_DEFAULT_SEG6_LOCAL_FLV_LCBLOCK_LEN 32 #define ZEBRA_DEFAULT_SEG6_LOCAL_FLV_LCNODE_FN_LEN 16 +/* SR Policy Headend Behaviors as per RFC 8986 section #5 */ +enum srv6_headend_behavior { + SRV6_HEADEND_BEHAVIOR_H_INSERT, + SRV6_HEADEND_BEHAVIOR_H_ENCAPS, + SRV6_HEADEND_BEHAVIOR_H_ENCAPS_RED, + SRV6_HEADEND_BEHAVIOR_H_ENCAPS_L2, + SRV6_HEADEND_BEHAVIOR_H_ENCAPS_L2_RED, +}; + enum seg6_mode_t { INLINE, ENCAP,