summaryrefslogtreecommitdiffstats
path: root/isisd/isis_te.c
diff options
context:
space:
mode:
authorHiroki Shirokura <hiroki.shirokura@linecorp.com>2022-01-22 12:07:40 +0100
committerLouis Scalbert <louis.scalbert@6wind.com>2023-04-18 10:11:43 +0200
commit81a067cd9251b60a04bbc8133546e790044fa790 (patch)
treea9082b7945b7da51ad54df3adb73b4013205d070 /isisd/isis_te.c
parentisisd: update struct isis_sr_psid_info with algorithm id (diff)
downloadfrr-81a067cd9251b60a04bbc8133546e790044fa790.tar.xz
frr-81a067cd9251b60a04bbc8133546e790044fa790.zip
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_te.c')
-rw-r--r--isisd/isis_te.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_te.c b/isisd/isis_te.c
index 4e180ead6..70b0633fa 100644
--- a/isisd/isis_te.c
+++ b/isisd/isis_te.c
@@ -611,7 +611,7 @@ static struct ls_vertex *lsp_to_vertex(struct ls_ted *ted, struct isis_lsp *lsp)
lnode.srgb.flag = cap->srgb.flags;
lnode.srgb.lower_bound = cap->srgb.lower_bound;
lnode.srgb.range_size = cap->srgb.range_size;
- for (int i = 0; i < SR_ALGORITHM_COUNT; i++)
+ for (int i = 0; i < LIB_LS_SR_ALGO_COUNT; i++)
lnode.algo[i] = cap->algo[i];
}