From 81a067cd9251b60a04bbc8133546e790044fa790 Mon Sep 17 00:00:00 2001 From: Hiroki Shirokura Date: Sat, 22 Jan 2022 11:07:40 +0000 Subject: 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 Signed-off-by: Philippe Guibert Signed-off-by: Louis Scalbert --- isisd/isis_te.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'isisd/isis_te.c') 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]; } -- cgit v1.2.3