Files
mlsr/lsdb/Lsdb.go
T

72 lines
1.4 KiB
Go

// Package lsdb
// @Author: Wang Feng
// @Description:
// @Version: 0.1.0
// @Date: 2022/3/24 11:41
// @Copyright: MIN-Group;国家重大科技基础设施——未来网络北大实验室;深圳市信息论与未来网络重点实验室
//
package lsdb
import (
"minlib/component"
"minlib/packet"
)
const (
INSTALLED = 0
UPDATED = 1
REMOVED = -1
)
type Lsdb struct {
}
//
// DoesLsaExist
// @Description: 返回LSDB是否存在某些LSA的查询结果
// @receiver l
// @param routerIdentifier
// @param lsaType
// @return bool
//
func (l *Lsdb) DoesLsaExist(routerIdentifier *component.Identifier,lsaType int) bool {
panic("implement me")
}
//
// BuildAndInstallOwnNameLsa
// @Description: 构建一个属于本路由器的名称LSA,并安装它到LSDB。
// @receiver l
//
func (l *Lsdb) BuildAndInstallOwnNameLsa() {
}
//
// BuildAndInstallOwnCoordinateLsa
// @Description: 构建一个属于本路由器的坐标LSA,并安装它到LSDB
// @receiver l
//
func (l *Lsdb) BuildAndInstallOwnCoordinateLsa() {
panic("implement me")
}
//
// ScheduleAdjLsaBuild
// @Description: 安排LSA的构建
// @receiver l
//
func (l *Lsdb) ScheduleAdjLsaBuild() {
}
//
// ProcessInterest
// @Description: 处理兴趣包。类似NDN的拉式传输
// @receiver l
// @param interest
//
func (l *Lsdb) ProcessInterest(interest *packet.Interest) {
}
func (l *Lsdb) ProcessGPPkt(pkt *packet.GPPkt) {
}