ot::Router::SetNextHopAndCost() method
Sets the next hop and cost to this router.
Arguments
aNextHop
The Router ID of the next hop to this router.
aCost
The cost to this router.
Return value
TRUE If there was a change, i.e., @p aNextHop or @p aCost were different from their previous values. FALSE If no change to next hop and cost values (new values are the same as before).
![]()
if (router->SetNextHopAndCost(nextHopId, cost))
ot::Router::SetNextHopAndCost() is called by 3 functions:
![]()
ot::Router::SetNextHopAndCost()
ot::Router::SetNextHopAndCost() reads 2 variables and writes 2 variables:
![]()
ot::Router::SetNextHopAndCost()