diff options
author | Hiroki Shirokura <hiroki.shirokura@linecorp.com> | 2021-12-11 03:09:23 +0100 |
---|---|---|
committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-17 11:06:08 +0200 |
commit | 329f87b31006e02dffcfc518c24787aa67f5d49f (patch) | |
tree | 0e3fa6b68b2551300e4af924caffddbc3e9ed898 /isisd/isis_spf.h | |
parent | Merge pull request #12550 from AbhishekNR/mld_join (diff) | |
download | frr-329f87b31006e02dffcfc518c24787aa67f5d49f.tar.xz frr-329f87b31006e02dffcfc518c24787aa67f5d49f.zip |
isisd: update struct isis_spftree with algorithm id
The spftree has a new property called algorithm
which is id used to identify the algorithm that
separates it in the same IGP network. This is
used in Flex-Algo. In other cases than Flex-Algo,
the algorithm id is always zero.
Signed-off-by: Hiroki Shirokura <hiroki.shirokura@linecorp.com>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'isisd/isis_spf.h')
-rw-r--r-- | isisd/isis_spf.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/isisd/isis_spf.h b/isisd/isis_spf.h index 7f4ab707e..bf79a084b 100644 --- a/isisd/isis_spf.h +++ b/isisd/isis_spf.h @@ -37,11 +37,10 @@ struct isis_spf_adj { #define F_ISIS_SPF_ADJ_METRIC_INFINITY 0x04 }; -struct isis_spftree *isis_spftree_new(struct isis_area *area, - struct lspdb_head *lspdb, - const uint8_t *sysid, int level, - enum spf_tree_id tree_id, - enum spf_type type, uint8_t flags); +struct isis_spftree * +isis_spftree_new(struct isis_area *area, struct lspdb_head *lspdb, + const uint8_t *sysid, int level, enum spf_tree_id tree_id, + enum spf_type type, uint8_t flags, uint8_t algorithm); struct isis_vertex *isis_spf_prefix_sid_lookup(struct isis_spftree *spftree, struct isis_prefix_sid *psid); void isis_spf_invalidate_routes(struct isis_spftree *tree); |