Documentation ¶
Index ¶
Constants ¶
View Source
const ( IFSM_DependUpon = iota IFSM_Down IFSM_Loopback IFSM_Waiting IFSM_PointToPoint IFSM_DROther IFSM_Backup IFSM_DR IFSM_StateMax )
View Source
const ( IFSM_NoEvent = iota IFSM_InterfaceUp IFSM_WaitTimer IFSM_BackupSeen IFSM_NeighborChange IFSM_LoopInd IFSM_UnloopInd IFSM_InterfaceDown IFSM_EventMax )
View Source
const ( OspfIfTypeNone = iota OspfIfTypeBroadcast OspfIfTypeNBMA OspfIfTypePointoPoint OspfIfTypePointoPointNBMA OspfIfTypePointoMultipoint OspfIfTypePointoMultipointNBMA OspfIfTypeVirtualLink OspfIfTypeLoopback OspfIfTypeHost OspfIfTypeMax )
View Source
const ( OSPF_OPTION_T = (1 << 0) // TOS. OSPF_OPTION_E = (1 << 1) OSPF_OPTION_MC = (1 << 2) OSPF_OPTION_NP = (1 << 3) OSPF_OPTION_EA = (1 << 4) OSPF_OPTION_DC = (1 << 5) OSPF_OPTION_O = (1 << 6) OSPF_OPTION_L = OSPF_OPTION_EA // LLS. OSPF_OPTION_DN = (1 << 7) // OSPF Down-bit )
View Source
const ( OSPF_HELLO_INTERVAL_DEFAULT = 10 OSPF_HELLO_INTERVAL_NBMA_DEFAULT = 30 )
View Source
const ( NFSM_DependUpon = iota NFSM_Down NFSM_Attempt NFSM_Init NFSM_TwoWay NFSM_ExStart NFSM_Exchange NFSM_Loading NFSM_Full NFSM_StateMax )
View Source
const ( NFSM_NoEvent = iota NFSM_HelloReceived NFSM_Start NFSM_TwoWayReceived NFSM_NegotiationDone NFSM_ExchangeDone NFSM_BadLSReq NFSM_LoadingDone NFSM_AdjOK NFSM_SeqNumberMismatch NFSM_OneWayReceived NFSM_KillNbr NFSM_InactivityTimer NFSM_LLDown NFSM_EventMax )
View Source
const ( OSPF_VERSION = 2 OSPF_AUTH_SIMPLE_SIZE = 8 )
View Source
const ( OSPF_PACKET_HELLO = 1 // OSPF Hello. OSPF_PACKET_DB_DESC = 2 // OSPF Database Description. OSPF_PACKET_LS_REQ = 3 // OSPF Link State Request. OSPF_PACKET_LS_UPD = 4 // OSPF Link State Update. OSPF_PACKET_LS_ACK = 5 // OSPF Link State Acknoledgement. OSPF_PACKET_TYPE_MAX = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ospf ¶
func (*Ospf) RestartEnabled ¶
type OspfInterface ¶
type OspfInterface struct { Top *Ospf Type int Ifp *rib.Interface Ident OspfIdent Nbrs *netutil.Ptree Area *OspfArea Network *OspfNetwork }
func NewOspfInterface ¶
func NewOspfInterface() *OspfInterface
func (*OspfInterface) AuthType ¶
func (oi *OspfInterface) AuthType() byte
func (*OspfInterface) DeadInterval ¶
func (oi *OspfInterface) DeadInterval() uint32
func (*OspfInterface) HelloInterval ¶
func (oi *OspfInterface) HelloInterval() uint16
func (*OspfInterface) IsUnnumbered ¶
func (oi *OspfInterface) IsUnnumbered() bool
func (*OspfInterface) Options ¶
func (oi *OspfInterface) Options() byte
func (*OspfInterface) Priority ¶
func (oi *OspfInterface) Priority() byte
type OspfNeighbor ¶
type OspfNeighbor struct {
State int
}
type OspfNetwork ¶
type OspfNetwork struct {
InstanceId uint8
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.