From 2d8c3b47dfdca2c5f4dccf09801928206a530d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cenk=20G=C3=BCndo=C4=9Fan?= Date: Thu, 14 Apr 2016 22:05:23 +0200 Subject: [PATCH] shell: icmpv6_echo: guard call to *_nc_still_reachable --- sys/shell/commands/sc_icmpv6_echo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/shell/commands/sc_icmpv6_echo.c b/sys/shell/commands/sc_icmpv6_echo.c index 0aab0113dc..f326f2a7b2 100644 --- a/sys/shell/commands/sc_icmpv6_echo.c +++ b/sys/shell/commands/sc_icmpv6_echo.c @@ -108,7 +108,9 @@ int _handle_reply(gnrc_pktsnip_t *pkt, uint32_t time) ipv6_addr_to_str(ipv6_str, &(ipv6_hdr->src), sizeof(ipv6_str)), byteorder_ntohs(icmpv6_hdr->id), seq, (unsigned)ipv6_hdr->hl, time / MS_IN_USEC, time % MS_IN_USEC); +#ifdef MODULE_GNRC_IPV6_NC gnrc_ipv6_nc_still_reachable(&ipv6_hdr->src); +#endif } else { puts("error: unexpected parameters");