mirror of
https://gitee.com/willfree/mlsr.git
synced 2026-06-08 00:29:28 +08:00
小修LSDB
This commit is contained in:
+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