xorp

OspfTypes Struct Reference

OSPF Types. More...

#include <ospf.hh>

List of all members.

Public Types

enum  Version { V2 = 2, V3 = 3 }
 

The OSPF version.


enum  LinkType {
  PointToPoint, BROADCAST, NBMA, PointToMultiPoint,
  VirtualLink
}
 

Link Type.


enum  AreaType { NORMAL, STUB, NSSA }
 

Area Type.


enum  VertexType { Router, Network }
 

Routing Entry Type.


enum  NSSATranslatorRole { ALWAYS, CANDIDATE }
 

NSSA Translator Role.


enum  NSSATranslatorState { ENABLED, ELECTED, DISABLED }
 

NSSA Translator State.


typedef uint16_t Type
 The type of an OSPF packet.
typedef uint32_t RouterID
 Router ID.
typedef uint32_t AreaID
 Area ID.
typedef uint16_t AuType
 Authentication type: OSPFv2 standard header.
typedef uint32_t PeerID
 An opaque handle that identifies a peer.
typedef uint32_t NeighbourID
 An opaque handle that identifies a neighbour.

Static Public Attributes

static const AuType NULL_AUTHENTICATION = 0
static const AuType SIMPLE_PASSWORD = 1
static const AuType CRYPTOGRAPHIC_AUTHENTICATION = 2
static const AreaID BACKBONE = 0
 The AreaID for the backbone area.
static const uint16_t IP_PROTOCOL_NUMBER = 89
 The IP protocol number used by OSPF.
static const PeerID ALLPEERS = 0
 An identifier meaning all peers.
static const NeighbourID ALLNEIGHBOURS = 0
 An identifier meaning all neighbours.
static const uint32_t UNUSED_INTERFACE_ID = 0
 An interface ID that will never be allocated OSPFv3 only.
static const uint32_t LSRefreshTime = 30 * 60
 The maximum time between distinct originations of any particular LSA.
static const uint32_t MinLSInterval = 5
 The minimum time between distinct originations of any particular LSA.
static const uint32_t MinLSArrival = 1
 For any particular LSA, the minimum time that must elapse between reception of new LSA instances during flooding.
static const uint32_t MaxAge = 60 * 60
 The maximum age that an LSA can attain.
static const uint32_t CheckAge = 5 * 60
 When the age of an LSA in the link state database hits a multiple of CheckAge, the LSA's checksum is verified.
static const int32_t MaxAgeDiff = 15 * 60
static const uint32_t LSInfinity = 0xffffff
static const uint32_t DefaultDestination = 0
static const int32_t InitialSequenceNumber = 0x80000001
static const int32_t MaxSequenceNumber = 0x7fffffff

Detailed Description

OSPF Types.


Member Data Documentation

An identifier meaning all neighbours.

No single neighbour can have this identifier.

const PeerID OspfTypes::ALLPEERS = 0 [static]

An identifier meaning all peers.

No single peer can have this identifier.

const uint32_t OspfTypes::CheckAge = 5 * 60 [static]

When the age of an LSA in the link state database hits a multiple of CheckAge, the LSA's checksum is verified.

An incorrect checksum at this time indicates a serious error. The value of CheckAge is set to 5 minutes.

const uint32_t OspfTypes::LSRefreshTime = 30 * 60 [static]

The maximum time between distinct originations of any particular LSA.

If the LS age field of one of the router's self-originated LSAs reaches the value LSRefreshTime, a new instance of the LSA is originated, even though the contents of the LSA (apart from the LSA header) will be the same. The value of LSRefreshTime is set to 30 minutes.

const uint32_t OspfTypes::MaxAge = 60 * 60 [static]

The maximum age that an LSA can attain.

When an LSA's LS age field reaches MaxAge, it is reflooded in an attempt to flush the LSA from the routing domain. LSAs of age MaxAge are not used in the routing table calculation. The value of MaxAge is set to 1 hour.

const uint32_t OspfTypes::MinLSArrival = 1 [static]

For any particular LSA, the minimum time that must elapse between reception of new LSA instances during flooding.

LSA instances received at higher frequencies are discarded. The value of MinLSArrival is set to 1 second.

const uint32_t OspfTypes::MinLSInterval = 5 [static]

The minimum time between distinct originations of any particular LSA.

The value of MinLSInterval is set to 5 seconds.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations