mirror of
https://gitee.com/willfree/mlsr.git
synced 2026-10-04 19:42:02 +08:00
小修LSDB
This commit is contained in:
1 parent
916d235a46
commit
381e1adbc9
1 file changed
+2
-2
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user