nhdp_metric.h¶
Macros for NHDP metric computation.
The used infrastructure for exchanging metric values is based on the rules defined in the RFC of OLSRv2. The calculations for the Directional Airtime Metric (DAT) are based on DAT Draft v5.
-
NHDP_LMT_HOP_COUNT
¶ Hop Count metric extension value for metric TLV extension field.
1
(163)
-
NHDP_LMT_DAT
¶ DAT metric extension value for metric TLV extension field.
1
(165)
-
NHDP_METRIC
¶ Used metric (change to switch to another metric type)
1
(NHDP_LMT_HOP_COUNT)
-
NHDP_METRIC_TIMER
¶ Randomly chosen number for NHDP’s metric timer event.
1
(5445)
-
NHDP_METRIC_NEEDS_TIMER
¶ Macro controlling the start of a periodic timer event for matric computation.
1
(NHDP_METRIC == NHDP_LMT_DAT)
-
NHDP_METRIC_UNKNOWN
¶ 1
(0)
-
NHDP_METRIC_MINIMUM
¶ 1
(RFC5444_METRIC_MIN)
-
NHDP_METRIC_MAXIMUM
¶ 1
(RFC5444_METRIC_MAX)
-
NHDP_Q_MEM_LENGTH
¶ Default queue size for metrics using a queue to determine link loss.
1
(64)
-
NHDP_SEQNO_RESTART_DETECT
¶ Restart detection value for packet sequence number based link loss computation.
1
(256)
-
NHDP_KD_LM_INC
¶ Encoding for an incoming link metric value in metric TLV.
1
(0x8000)
-
NHDP_KD_LM_OUT
¶ Encoding for an outgoing link metric value in metric TLV.
1
(0x4000)
-
NHDP_KD_NM_INC
¶ Encoding for an incoming neighbor metric value in metric TLV.
1
(0x2000)
-
NHDP_KD_NM_OUT
¶ Encoding for an outgoing neighbor metric value in metric TLV.
1
(0x1000)
-
DAT_MEMORY_LENGTH
¶ Length of RCVD and TOTAL queue of DAT metric.
1
(NHDP_Q_MEM_LENGTH)
-
DAT_REFRESH_INTERVAL
¶ Time between DAT metric refreshal.
1
(1)
-
DAT_HELLO_TIMEOUT_FACTOR
¶ Factor to spread HELLO interval.
1
(1.2)
-
DAT_MINIMUM_BITRATE
¶ Minimal supported bit rate in bps (default value for new links)
1
(1000)
-
DAT_MAXIMUM_LOSS
¶ Maximum allowed loss in expected/rcvd HELLOs (should not be changed)
1
(8)
-
DAT_CONSTANT
¶ Constant value needed for DAT metric computation (should not be changed)
1
(16777216)