mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-31 01:11:21 +01:00
ng_ndp: expand documentation on ng_ipv6_nc_t::nbr_adv_timer
This commit is contained in:
parent
70abb0c4ed
commit
2bdf22af97
@ -134,6 +134,12 @@ typedef struct {
|
||||
|
||||
/**
|
||||
* @brief Delay timer for neighbor advertisements of this entry.
|
||||
*
|
||||
* @note Only needed for delayed anycast neighbor advertisements
|
||||
*
|
||||
* @see <a href="https://tools.ietf.org/html/rfc4861#section-7.2.7">
|
||||
* RFC 4861, section 7.2.7
|
||||
* </a>
|
||||
*/
|
||||
vtimer_t nbr_adv_timer;
|
||||
|
||||
|
||||
@ -686,7 +686,8 @@ static void _send_nbr_adv(kernel_pid_t iface, ng_ipv6_addr_t *tgt,
|
||||
((ng_netif_hdr_t *)hdr->data)->if_pid = iface;
|
||||
|
||||
if (ng_ipv6_netif_addr_is_non_unicast(tgt)) {
|
||||
/* avoid collision for anycast addresses */
|
||||
/* avoid collision for anycast addresses
|
||||
* (see https://tools.ietf.org/html/rfc4861#section-7.2.7) */
|
||||
timex_t delay = { _rand(0, NG_NDP_MAX_AC_TGT_DELAY), 0 };
|
||||
ng_ipv6_nc_t *nc_entry = ng_ipv6_nc_get(iface, tgt);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user