微修lsdb

This commit is contained in:
free will committed 2022-04-07 13:18:58 +08:00
1 parent 7000111152
commit cb66c8204b
1 file changed
+9 -7
+9 -7
View File
@@ -80,7 +80,7 @@ func (l *Lsdb) BuildAndInstallOwnNameLsa() {
// @receiver l
//
func (l *Lsdb) BuildAndInstallOwnCoordinateLsa() {
panic("implement me")
// todo
}
//
@@ -134,11 +134,12 @@ func (l *Lsdb) GetSync() *communication.SyncLogicHandler {
// @receiver l*
// @param routerIdentifier
// @param lsaType
// @return *lsa.ILsa
// @return lsa.ILsa
//
func (l *Lsdb) FindLsa(routerIdentifier *component.Identifier,
lsaType lsa.LsaType) lsa.ILsa {
panic("")
// todo
return &lsa.NameLsa{}
}
//
@@ -159,7 +160,7 @@ func (l *Lsdb) IsLsaNew(routerIdentifier *component.Identifier,
return true
}
func (l *Lsdb) InstallLsa(lsa *lsa.ILsa) {
func (l *Lsdb) InstallLsa(lsa lsa.ILsa) {
}
func (l* Lsdb) RemoveLsa(routerIdentifier *component.Identifier,
@@ -191,11 +192,11 @@ func (l *Lsdb) BuildAndInstallOwnAdjLsa() {
// @Description: 在调度器中安排一个刷新或过期事件
// @receiver l
//
func (l *Lsdb) ScheduleLsaExpiration(lsa *lsa.ILsa,duration *time.Duration) {
func (l *Lsdb) ScheduleLsaExpiration(lsa lsa.ILsa,duration *time.Duration) {
}
func (l* Lsdb) ExpireOrRefreshLsa(lsa *lsa.ILsa) {
func (l* Lsdb) ExpireOrRefreshLsa(lsa lsa.ILsa) {
}
func (l *Lsdb) ProcessInterestForLsa(interest *packet.Interest,
@@ -236,6 +237,7 @@ func (l *Lsdb) AfterFetchLsa(buffer bytes.Buffer,interestName *component.Identif
}
func (l *Lsdb) getLsaExpirationTimePoint() time.Time {
panic("")
// todo
return time.Time{}
}