0.01.00
mle_constants.hpp File Reference

This file includes definitions for MLE functionality required by the Thread Child, Router, and Leader roles. More...

Go to the source code of this file.

Namespaces

 ot::Mle
 This namespace includes definitions for the MLE protocol.
 

Enumerations

enum  {
  kMaxChildren = OPENTHREAD_CONFIG_MAX_CHILDREN,
  ot::Mle::kMaxChildKeepAliveAttempts = 4,
  ot::Mle::kFailedChildTransmissions = 4
}
 
enum  {
  ot::Mle::kVersion = 2,
  ot::Mle::kUdpPort = 19788,
  ot::Mle::kParentRequestRouterTimeout = 750,
  ot::Mle::kParentRequestChildTimeout = 1250,
  ot::Mle::kParentResponseMaxDelayRouters = 500,
  ot::Mle::kParentResponseMaxDelayAll = 1000,
  ot::Mle::kUnicastRetransmissionDelay = 1000,
  ot::Mle::kMaxResponseDelay = 1000,
  ot::Mle::kMaxChildIdRequestTimeout = 5000,
  ot::Mle::kMaxChildUpdateResponseTimeout = 2000,
  ot::Mle::kMaxLinkRequestTimeout = 2000,
  ot::Mle::kMinTimeout = (((kMaxChildKeepAliveAttempts + 1) * kUnicastRetransmissionDelay) / 1000)
}
 MLE Protocol Constants. More...
 
enum  {
  ot::Mle::kMinChildId = 1,
  ot::Mle::kMaxChildId = 511,
  ot::Mle::kRouterIdOffset = 10,
  ot::Mle::kRlocPrefixLength = 14
}
 
enum  {
  ot::Mle::kAdvertiseIntervalMin = 1,
  ot::Mle::kAdvertiseIntervalMax = 32,
  ot::Mle::kFailedRouterTransmissions = 4,
  ot::Mle::kRouterIdReuseDelay = 100,
  ot::Mle::kRouterIdSequencePeriod = 10,
  ot::Mle::kMaxNeighborAge = 100,
  ot::Mle::kMaxRouteCost = 16,
  ot::Mle::kMaxRouterId = 62,
  ot::Mle::kInvalidRouterId = kMaxRouterId + 1,
  ot::Mle::kMaxRouters = 32,
  ot::Mle::kMinDowngradeNeighbors = 7,
  ot::Mle::kNetworkIdTimeout = 120,
  ot::Mle::kParentRouteToLeaderTimeout = 20,
  ot::Mle::kRouterSelectionJitter = 120,
  ot::Mle::kRouterDowngradeThreshold = 23,
  ot::Mle::kRouterUpgradeThreshold = 16,
  ot::Mle::kMaxLeaderToRouterTimeout = 90,
  ot::Mle::kReedAdvertiseInterval = 570,
  ot::Mle::kReedAdvertiseJitter = 60,
  ot::Mle::kLeaderWeight = 64,
  ot::Mle::kMleEndDeviceTimeout = OPENTHREAD_CONFIG_DEFAULT_CHILD_TIMEOUT
}
 Routing Protocol Constants. More...
 
enum  {
  kParentPriorityHigh = 1,
  kParentPriorityMedium = 0,
  kParentPriorityLow = -1,
  kParentPriorityUnspecified = -2
}
 Parent Priority values. More...
 
enum  {
  ot::Mle::kLinkQuality3LinkCost = 1,
  ot::Mle::kLinkQuality2LinkCost = 2,
  ot::Mle::kLinkQuality1LinkCost = 4,
  ot::Mle::kLinkQuality0LinkCost = 16
}
 
enum  {
  ot::Mle::kMplChildDataMessageTimerExpirations = 0,
  ot::Mle::kMplRouterDataMessageTimerExpirations = 2
}
 Multicast Forwarding Constants. More...
 

Detailed Description

This file includes definitions for MLE functionality required by the Thread Child, Router, and Leader roles.