|
|
These are named exactly as they are in RFC 3626, to avoid any confusion.
static const int DEFAULT_STATIC_FACE_COST | DEFAULT_STATIC_FACE_COST |
static const int MAX_TTL | MAX_TTL |
static const int DEFAULT_HELLO_INTERVAL | DEFAULT_HELLO_INTERVAL |
static const int DEFAULT_REFRESH_INTERVAL | DEFAULT_REFRESH_INTERVAL |
static const int DEFAULT_TC_INTERVAL | DEFAULT_TC_INTERVAL |
static const int DEFAULT_DUP_HOLD_TIME | DEFAULT_DUP_HOLD_TIME |
static const int DEFAULT_MID_INTERVAL | DEFAULT_MID_INTERVAL |
static const int DEFAULT_HNA_INTERVAL | DEFAULT_HNA_INTERVAL |
typedef uint32_t ExternalID | ExternalID |
static const ExternalID UNUSED_EXTERNAL_ID | UNUSED_EXTERNAL_ID |
typedef uint32_t FaceID | FaceID |
static const FaceID UNUSED_FACE_ID | UNUSED_FACE_ID |
static double DEFAULT_HYST_THRESHOLD_HIGH | DEFAULT_HYST_THRESHOLD_HIGH |
static double DEFAULT_HYST_THRESHOLD_LOW | DEFAULT_HYST_THRESHOLD_LOW |
static double DEFAULT_HYST_SCALING | DEFAULT_HYST_SCALING |
typedef uint8_t LinkType | LinkType |
enum LinkTypes { UNSPEC_LINK = 0, ASYM_LINK = 1, SYM_LINK = 2, LOST_LINK = 3, LINKTYPE_START = UNSPEC_LINK, LINKTYPE_END = LOST_LINK } | LinkTypes |
static const int NUM_LINKTYPE | NUM_LINKTYPE |
typedef uint32_t LogicalLinkID | LogicalLinkID |
static const LogicalLinkID UNUSED_LINK_ID | UNUSED_LINK_ID |
typedef uint8_t MessageType | MessageType |
enum MessageTypes { HELLO_MESSAGE = 1, TC_MESSAGE = 2, MID_MESSAGE = 3, HNA_MESSAGE = 4, LQ_HELLO_MESSAGE = 201, LQ_TC_MESSAGE = 202 } | MessageTypes |
typedef uint32_t MidEntryID | MidEntryID |
static const MidEntryID UNUSED_MID_ID | UNUSED_MID_ID |
typedef uint32_t NeighborID | NeighborID |
static const NeighborID UNUSED_NEIGHBOR_ID | UNUSED_NEIGHBOR_ID |
typedef uint8_t NeighborType | NeighborType |
enum NeighborTypes { NOT_NEIGH = 0, SYM_NEIGH = 1, MPR_NEIGH = 2, NEIGHBORTYPE_START = NOT_NEIGH, NEIGHBORTYPE_END = MPR_NEIGH, } | NeighborTypes |
static const int NUM_NEIGHBORTYPE | NUM_NEIGHBORTYPE |
static const uint16_t DEFAULT_OLSR_PORT | DEFAULT_OLSR_PORT |
typedef uint8_t WillType | WillType |
enum Willingness { WILL_NEVER = 0, WILL_LOW = 1, WILL_DEFAULT = 3, WILL_HIGH = 6, WILL_ALWAYS = 7, WILL_MIN = WILL_LOW, WILL_MAX = WILL_ALWAYS, WILL_START = WILL_NEVER, WILL_END = WILL_ALWAYS } | Willingness |
typedef uint8_t TcRedundancyType | TcRedundancyType |
enum TcRedundancyMode { TCR_MPRS_IN = 0, TCR_MPRS_INOUT = 1, TCR_ALL = 2, TCR_START = TCR_MPRS_IN, TCR_END = TCR_ALL } | TcRedundancyMode |
static const uint8_t DEFAULT_TC_REDUNDANCY | DEFAULT_TC_REDUNDANCY |
static const uint8_t DEFAULT_MPR_COVERAGE | DEFAULT_MPR_COVERAGE |
typedef uint32_t TopologyID | TopologyID |
static const TopologyID UNUSED_TOPOLOGY_ID | UNUSED_TOPOLOGY_ID |
typedef uint32_t TwoHopNodeID | TwoHopNodeID |
static const TwoHopNodeID UNUSED_TWOHOP_NODE_ID | UNUSED_TWOHOP_NODE_ID |
typedef uint32_t TwoHopLinkID | TwoHopLinkID |
static const TwoHopLinkID UNUSED_TWOHOP_LINK_ID | UNUSED_TWOHOP_LINK_ID |
enum VertexType { VT_ORIGINATOR = 0, VT_UNKNOWN = 0, VT_NEIGHBOR = 1, VT_TWOHOP = 2, VT_TOPOLOGY = 3, VT_MID = 4, VT_HNA = 5, VT_START = VT_ORIGINATOR, VT_END = VT_HNA } | VertexType |
SPT is a meta-class which embeds the Vertex as a POD type, therefore, inheritance cannot be used to represent the vertex type.
enum TlvType { TLV_VERSION = 1, TLV_SYSTEM_INFO = 2, TLV_OLSR_VERSION = 3, TLV_OLSR_FAMILY = 4, TLV_OLSR_N1 = 5, TLV_OLSR_L1 = 6, TLV_OLSR_N2 = 7, TLV_OLSR_L2 = 8, TLV_OLSR_MID = 9, TLV_OLSR_TC = 10, TLV_OLSR_HNA = 11, } | TlvType |