summaryrefslogtreecommitdiff
path: root/isisd/isis_flex_algo.c
AgeCommit message (Collapse)Author
2023-09-07Revert "lib: add a frr_each_const macro"David Lamparter
This reverts commit 72eae2c3cb771b7010f3f07b6c638e9ae078bbdf. `frr_each_const(X, ...)` is not needed since it is the same as `frr_each(X_const, ...)`. The fact that it wasn't properly set up for clang-format, and that then work-arounded with "clang-format off" is all the more reason to not do this. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2023-04-27isisd, lib: clarify sizeof on flex-algo memory allocationLouis Scalbert
Use the struct instead of the pointer for flex-algo memory allocation. Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-04-27isisd: fix flex-algo data memory leak at algorithm removalLouis Scalbert
Fix a flex-algo data memory leak when a specific algorithm is removed. Fixes: 7f198e063c ("isisd: add isis flex-algo base interface") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-04-20isisd: fix overrun in isis_flex_algo_constraint_drop()Louis Scalbert
Coverity scanner reported the overrun issue #1560312 because reach->id length is 7 bytes and we are trying to copy 8 bytes (ie. ISIS_SYS_ID_LEN + 2). Fix the issue by using the %pPN to display directly the 7 bytes system-id. Fixes: 860b75b40e ("isisd: calculate flex-algo constraint spf") Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-04-18isisd: calculate flex-algo constraint spfHiroki Shirokura
Take into account the flex-algo affinity constraints to compute the SPF tree. Signed-off-by: Hiroki Shirokura <hiroki.shirokura@linecorp.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2023-04-18isisd: add isis flex-algo base interfaceHiroki Shirokura
Adds basic functionality to Flex-Algo for IS-IS wrapping lib/flex_algo. The configuration interface will be added in the next commit. Signed-off-by: Hiroki Shirokura <hiroki.shirokura@linecorp.com> Signed-off-by: Eric Kinzie <ekinzie@labn.net> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>