1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

ndp/internal: use dst instead of tgt to determine the nc_entry

This commit is contained in:
Cenk Gündoğan 2015-10-26 15:32:13 +01:00
parent e72bde5805
commit 609cf7fb12

View File

@ -216,7 +216,7 @@ void gnrc_ndp_internal_send_nbr_adv(kernel_pid_t iface, ipv6_addr_t *tgt, ipv6_a
* (see https://tools.ietf.org/html/rfc4861#section-7.2.7) */
timex_t delay = { 0, genrand_uint32_range(0, GNRC_NDP_MAX_AC_TGT_DELAY * SEC_IN_USEC) };
timex_normalize(&delay);
gnrc_ipv6_nc_t *nc_entry = gnrc_ipv6_nc_get(iface, tgt);
gnrc_ipv6_nc_t *nc_entry = gnrc_ipv6_nc_get(iface, dst);
DEBUG("ndp internal: delay neighbor advertisement for %" PRIu32 " sec.",
delay.seconds);