Documentation
¶
Index ¶
- Constants
- Variables
- func NewSpfDistance(internal, external uint32) *spfDistance
- func NewSpfIdIpv4(prefixAddress uint32, prefixLength uint8) *spfId
- func NewSpfIdIpv6(prefixAddress [4]uint32, prefixLength uint8) *spfId
- func NewSpfIdNode(nodeId [packet.NEIGHBOUR_ID_LENGTH]byte) *spfId
- func NewSpfTriple(id *spfId, distance *spfDistance) *spfTriple
- func NewSpfTriples() *spfTriples
- func SetsockoptAttachFilter(fd, level, opt int, bpf *SockFprog) (err error)
- func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) (err error)
- type AdjType
- type AdjUsage
- type Adjacency
- type ApiServer
- func (s *ApiServer) AdjacencyGet(ctx context.Context, in *api.AdjacencyGetRequest) (*api.AdjacencyGetResponse, error)
- func (s *ApiServer) AdjacencyMonitor(in *api.AdjacencyMonitorRequest, stream api.GoisisApi_AdjacencyMonitorServer) error
- func (s *ApiServer) DbLsGet(ctx context.Context, in *api.DbLsGetRequest) (*api.DbLsGetResponse, error)
- func (s *ApiServer) DbLsMonitor(in *api.DbLsMonitorRequest, stream api.GoisisApi_DbLsMonitorServer) error
- func (s *ApiServer) DbRiGet(ctx context.Context, in *api.DbRiGetRequest) (*api.DbRiGetResponse, error)
- func (s *ApiServer) DbRiMonitor(in *api.DbRiMonitorRequest, stream api.GoisisApi_DbRiMonitorServer) error
- func (s *ApiServer) Disable(ctx context.Context, in *api.DisableRequest) (*api.DisableResponse, error)
- func (s *ApiServer) Enable(ctx context.Context, in *api.EnableRequest) (*api.EnableResponse, error)
- func (s *ApiServer) Exit()
- func (s *ApiServer) InterfaceDisable(ctx context.Context, in *api.InterfaceDisableRequest) (*api.InterfaceDisableResponse, error)
- func (s *ApiServer) InterfaceEnable(ctx context.Context, in *api.InterfaceEnableRequest) (*api.InterfaceEnableResponse, error)
- func (s *ApiServer) Serve(wg *sync.WaitGroup)
- type Circuit
- type CircuitChMsg
- type CircuitChState
- type DecisionChMsg
- type DecisionChMsgType
- type Ipv4Nh
- type Ipv4Reachabilities
- type Ipv4Reachability
- type Ipv4Ri
- type Ipv6Nh
- type Ipv6Reachabilities
- type Ipv6Reachability
- type Ipv6Ri
- type IsReachabilities
- type IsReachability
- type IsisChMsg
- type IsisLevel
- type IsisServer
- type Ls
- type Lss
- type P2pIihAction
- type PacketMreq
- type Reachabilities
- type SockFilter
- type SockFprog
- type SpfIdKeys
- type UpdateChMsg
- type UpdateChMsgType
Constants ¶
View Source
const ( MAX_PATH_METRIC = 0xfe000000 ZERO_AGE_LIFETIME = time.Minute * 1 )
View Source
const ( SPF_ID_TYPE_NODE spfIdType SPF_ID_TYPE_IPV4 SPF_ID_TYPE_IPV6 )
View Source
const SPF_ID_KEY_LENGTH = 18
Variables ¶
View Source
var ISIS_LEVEL_ALL = []IsisLevel{ISIS_LEVEL_1, ISIS_LEVEL_2}
Functions ¶
func NewSpfDistance ¶
func NewSpfDistance(internal, external uint32) *spfDistance
func NewSpfIdIpv4 ¶
func NewSpfIdIpv6 ¶
func NewSpfIdNode ¶
func NewSpfIdNode(nodeId [packet.NEIGHBOUR_ID_LENGTH]byte) *spfId
func NewSpfTriple ¶
func NewSpfTriple(id *spfId, distance *spfDistance) *spfTriple
func NewSpfTriples ¶
func NewSpfTriples() *spfTriples
func SetsockoptAttachFilter ¶
func SetsockoptPacketMreq ¶
func SetsockoptPacketMreq(fd, level, opt int, mreq *PacketMreq) (err error)
Types ¶
type AdjType ¶
type AdjType uint8
const ( ADJ_TYPE_LEVEL1_LAN AdjType ADJ_TYPE_LEVEL2_LAN ADJ_TYPE_P2P )
type AdjUsage ¶
type AdjUsage uint8
const ( ADJ_USAGE_NONE AdjUsage ADJ_USAGE_LEVEL1 ADJ_USAGE_LEVEL2 ADJ_USAGE_LEVEL1AND2 )
type Adjacency ¶
type Adjacency struct {
// contains filtered or unexported fields
}
func NewAdjacency ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
func NewApiServer ¶
func NewApiServer(i *IsisServer, g *grpc.Server, hosts string) *ApiServer
func (*ApiServer) AdjacencyGet ¶
func (s *ApiServer) AdjacencyGet(ctx context.Context, in *api.AdjacencyGetRequest) (*api.AdjacencyGetResponse, error)
func (*ApiServer) AdjacencyMonitor ¶
func (s *ApiServer) AdjacencyMonitor(in *api.AdjacencyMonitorRequest, stream api.GoisisApi_AdjacencyMonitorServer) error
func (*ApiServer) DbLsGet ¶
func (s *ApiServer) DbLsGet(ctx context.Context, in *api.DbLsGetRequest) (*api.DbLsGetResponse, error)
func (*ApiServer) DbLsMonitor ¶
func (s *ApiServer) DbLsMonitor(in *api.DbLsMonitorRequest, stream api.GoisisApi_DbLsMonitorServer) error
func (*ApiServer) DbRiGet ¶
func (s *ApiServer) DbRiGet(ctx context.Context, in *api.DbRiGetRequest) (*api.DbRiGetResponse, error)
func (*ApiServer) DbRiMonitor ¶
func (s *ApiServer) DbRiMonitor(in *api.DbRiMonitorRequest, stream api.GoisisApi_DbRiMonitorServer) error
func (*ApiServer) Disable ¶
func (s *ApiServer) Disable(ctx context.Context, in *api.DisableRequest) (*api.DisableResponse, error)
func (*ApiServer) Enable ¶
func (s *ApiServer) Enable(ctx context.Context, in *api.EnableRequest) (*api.EnableResponse, error)
func (*ApiServer) InterfaceDisable ¶
func (s *ApiServer) InterfaceDisable(ctx context.Context, in *api.InterfaceDisableRequest) (*api.InterfaceDisableResponse, error)
func (*ApiServer) InterfaceEnable ¶
func (s *ApiServer) InterfaceEnable(ctx context.Context, in *api.InterfaceEnableRequest) (*api.InterfaceEnableResponse, error)
type Circuit ¶
type Circuit struct {
// contains filtered or unexported fields
}
func NewCircuit ¶
func (*Circuit) SetDisable ¶
func (circuit *Circuit) SetDisable()
func (*Circuit) SetPassive ¶
func (circuit *Circuit) SetPassive()
type CircuitChMsg ¶
type CircuitChMsg uint8
const ( CIRCUIT_CH_MSG_START CircuitChMsg CIRCUIT_CH_MSG_STOP CIRCUIT_CH_MSG_EXIT )
type CircuitChState ¶
type CircuitChState uint8
const ( CIRCUIT_CH_STATE_RUNNING CircuitChState CIRCUIT_CH_STATE_SUSPENDED )
type DecisionChMsg ¶
type DecisionChMsg struct {
// contains filtered or unexported fields
}
func (*DecisionChMsg) String ¶
func (msg *DecisionChMsg) String() string
type DecisionChMsgType ¶
type DecisionChMsgType uint8
const ( DECISION_CH_MSG_TYPE_DO DecisionChMsgType DECISION_CH_MSG_TYPE_EXIT )
func (DecisionChMsgType) String ¶
func (msgType DecisionChMsgType) String() string
type Ipv4Reachabilities ¶
type Ipv4Reachabilities []*Ipv4Reachability
func (Ipv4Reachabilities) Len ¶
func (rs Ipv4Reachabilities) Len() int
func (Ipv4Reachabilities) Less ¶
func (rs Ipv4Reachabilities) Less(i, j int) bool
func (Ipv4Reachabilities) Swap ¶
func (rs Ipv4Reachabilities) Swap(i, j int)
type Ipv4Reachability ¶
type Ipv4Reachability struct {
// contains filtered or unexported fields
}
type Ipv6Reachabilities ¶
type Ipv6Reachabilities []*Ipv6Reachability
func (Ipv6Reachabilities) Len ¶
func (rs Ipv6Reachabilities) Len() int
func (Ipv6Reachabilities) Less ¶
func (rs Ipv6Reachabilities) Less(i, j int) bool
func (Ipv6Reachabilities) Swap ¶
func (rs Ipv6Reachabilities) Swap(i, j int)
type Ipv6Reachability ¶
type Ipv6Reachability struct {
// contains filtered or unexported fields
}
type IsReachabilities ¶
type IsReachabilities []*IsReachability
func (IsReachabilities) Len ¶
func (rs IsReachabilities) Len() int
func (IsReachabilities) Less ¶
func (rs IsReachabilities) Less(i, j int) bool
func (IsReachabilities) Swap ¶
func (rs IsReachabilities) Swap(i, j int)
type IsReachability ¶
type IsReachability struct {
// contains filtered or unexported fields
}
type IsisServer ¶
type IsisServer struct {
// contains filtered or unexported fields
}
func NewIsisServer ¶
func NewIsisServer(configFile, configType string) *IsisServer
func (*IsisServer) Exit ¶
func (isis *IsisServer) Exit()
func (*IsisServer) Serve ¶
func (isis *IsisServer) Serve(wg *sync.WaitGroup)
func (*IsisServer) SetDisable ¶
func (isis *IsisServer) SetDisable()
func (*IsisServer) SetEnable ¶
func (isis *IsisServer) SetEnable()
type P2pIihAction ¶
type P2pIihAction uint8
const ( P2P_IIH_ACTION_NONE P2pIihAction P2P_IIH_ACTION_UP P2P_IIH_ACTION_DOWN P2P_IIH_ACTION_ACCEPT P2P_IIH_ACTION_REJECT )
type Reachabilities ¶
type Reachabilities struct {
// contains filtered or unexported fields
}
func NewReachabilities ¶
func NewReachabilities() *Reachabilities
type SockFprog ¶
type SockFprog struct { Len uint16 Filter *SockFilter }
type SpfIdKeys ¶
type SpfIdKeys [][SPF_ID_KEY_LENGTH]byte
type UpdateChMsg ¶
type UpdateChMsg struct {
// contains filtered or unexported fields
}
func (*UpdateChMsg) String ¶
func (msg *UpdateChMsg) String() string
type UpdateChMsgType ¶
type UpdateChMsgType uint8
const ( UPDATE_CH_MSG_TYPE_CONFIG_CHANGED UpdateChMsgType UPDATE_CH_MSG_TYPE_KERNEL_CHANGED UPDATE_CH_MSG_TYPE_ISIS_ENABLE UPDATE_CH_MSG_TYPE_ISIS_DISABLE UPDATE_CH_MSG_TYPE_CIRCUIT_ENABLE UPDATE_CH_MSG_TYPE_CIRCUIT_DISABLE UPDATE_CH_MSG_TYPE_ADJACENCY_UP UPDATE_CH_MSG_TYPE_ADJACENCY_DOWN UPDATE_CH_MSG_TYPE_LSDB_CHANGED UPDATE_CH_MSG_TYPE_EXIT )
func (UpdateChMsgType) String ¶
func (msgType UpdateChMsgType) String() string
Click to show internal directories.
Click to hide internal directories.