From f0e2f50713f1553e4c4b48ea459e3f5bdc4d0977 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Mon, 21 Sep 2015 18:30:27 +0200 Subject: [PATCH] 6lowpan nc: rtr sol timer expects an interface --- .../gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c b/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c index 9e744c50ae..c469188404 100644 --- a/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c +++ b/sys/net/gnrc/network_layer/sixlowpan/nd/gnrc_sixlowpan_nd.c @@ -221,9 +221,10 @@ void gnrc_sixlowpan_nd_rtr_sol_reschedule(gnrc_ipv6_nc_t *nce, uint32_t sec_dela { assert(nce != NULL); assert(sec_delay != 0U); - vtimer_remove(&nce->rtr_sol_timer); - vtimer_set_msg(&nce->rtr_sol_timer, timex_set(sec_delay, 0), gnrc_ipv6_pid, - GNRC_SIXLOWPAN_ND_MSG_MC_RTR_SOL, nce); + gnrc_ipv6_netif_t *iface = gnrc_ipv6_netif_get(nce->iface); + vtimer_remove(&iface->rtr_sol_timer); + vtimer_set_msg(&iface->rtr_sol_timer, timex_set(sec_delay, 0), gnrc_ipv6_pid, + GNRC_SIXLOWPAN_ND_MSG_MC_RTR_SOL, iface); } gnrc_pktsnip_t *gnrc_sixlowpan_nd_opt_ar_build(uint8_t status, uint16_t ltime, eui64_t *eui64,