summaryrefslogtreecommitdiffstats
path: root/isisd/isis_spf.c
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2017-05-06 15:50:37 +0200
committerChristian Franke <chris@opensourcerouting.org>2017-05-06 15:50:37 +0200
commit8b8c94eb566830ab7f4587a6c766caa7c28f4831 (patch)
tree4c66515da5e2430d43745a6199320a1d57e3f3ef /isisd/isis_spf.c
parentMerge pull request #472 from qlyoung/rfapi-correct-types (diff)
downloadfrr-8b8c94eb566830ab7f4587a6c766caa7c28f4831.tar.xz
frr-8b8c94eb566830ab7f4587a6c766caa7c28f4831.zip
isisd: fix initialization of ES vertizes
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--isisd/isis_spf.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index d85f08f50..43dffdc86 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -940,7 +940,9 @@ isis_spf_preload_tent (struct isis_spftree *spftree,
switch (adj->sys_type)
{
case ISIS_SYSTYPE_ES:
- isis_spf_add_local (spftree, VTYPE_ES, adj->sysid, adj,
+ memcpy(lsp_id, adj->sysid, ISIS_SYS_ID_LEN);
+ LSP_PSEUDO_ID (lsp_id) = 0;
+ isis_spf_add_local (spftree, VTYPE_ES, lsp_id, adj,
circuit->te_metric[spftree->level - 1],
parent);
break;
@@ -1017,7 +1019,9 @@ isis_spf_preload_tent (struct isis_spftree *spftree,
switch (adj->sys_type)
{
case ISIS_SYSTYPE_ES:
- isis_spf_add_local (spftree, VTYPE_ES, adj->sysid, adj,
+ memcpy (lsp_id, adj->sysid, ISIS_SYS_ID_LEN);
+ LSP_PSEUDO_ID (lsp_id) = 0;
+ isis_spf_add_local (spftree, VTYPE_ES, lsp_id, adj,
circuit->te_metric[spftree->level - 1],
parent);
break;