summaryrefslogtreecommitdiff
path: root/isisd/isis_tlvs.h
diff options
context:
space:
mode:
authorHiroki Shirokura <hiroki.shirokura@linecorp.com>2022-01-22 11:07:40 +0000
committerLouis Scalbert <louis.scalbert@6wind.com>2023-04-18 10:11:43 +0200
commit81a067cd9251b60a04bbc8133546e790044fa790 (patch)
treea9082b7945b7da51ad54df3adb73b4013205d070 /isisd/isis_tlvs.h
parent7f8dddf4300911a8d125d53f87eb64598e2bbcf8 (diff)
lib,isisd: refactor igp-agnostic sr misc functions
SR Algorithms are independent of specific IGPs such as IS-IS. This commit adds lib/sr to aggregate IGP agnostic functions and constants. Signed-off-by: Hiroki Shirokura <hiroki.shirokura@linecorp.com> Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'isisd/isis_tlvs.h')
-rw-r--r--isisd/isis_tlvs.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/isisd/isis_tlvs.h b/isisd/isis_tlvs.h
index 51058f1af1..454288c45e 100644
--- a/isisd/isis_tlvs.h
+++ b/isisd/isis_tlvs.h
@@ -9,6 +9,7 @@
#ifndef ISIS_TLVS_H
#define ISIS_TLVS_H
+#include "segment_routing.h"
#include "openbsd-tree.h"
#include "prefix.h"
@@ -177,16 +178,6 @@ struct isis_lan_adj_sid {
#define ISIS_ROUTER_CAP_FLAG_D 0x02
#define ISIS_ROUTER_CAP_SIZE 5
-/* Number of supported algorithm for Segment Routing.
- * Right now only 2 have been standardized:
- * - 0: SPF
- * - 1: Strict SPF
- */
-#define SR_ALGORITHM_COUNT 2
-#define SR_ALGORITHM_SPF 0
-#define SR_ALGORITHM_STRICT_SPF 1
-#define SR_ALGORITHM_UNSET 255
-
#define MSD_TYPE_BASE_MPLS_IMPOSITION 0x01
#define MSD_TLV_SIZE 2