1
0
mirror of https://gitee.com/willfree/mlsr.git synced 2026-06-08 00:29:28 +08:00

小修LSDB

This commit is contained in:
free will
2022-05-27 19:24:06 +08:00
parent 916d235a46
commit 381e1adbc9
+2 -2
View File
@@ -218,8 +218,8 @@ func (l *Lsdb) FindLsa(routerIdentifier *component.Identifier,
//
func (l *Lsdb) IsLsaNew(routerIdentifier *component.Identifier,
lsaType lsa.LsaType, seqNo uint64) bool {
lsa := l.FindLsa(routerIdentifier, lsaType)
if lsa.GetSeqNo() >= seqNo {
iLsa := l.FindLsa(routerIdentifier, lsaType)
if iLsa.GetSeqNo() >= seqNo {
return false
}
return true