diff --git a/lsdb/Lsdb.go b/lsdb/Lsdb.go index 3ea8661..d99c15c 100644 --- a/lsdb/Lsdb.go +++ b/lsdb/Lsdb.go @@ -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{} }