1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-20 20:13:50 +01:00

Merge pull request #5320 from cgundogan/pr/shell/icmpv6_without_nc

shell: icmpv6_echo: guard call to *_nc_still_reachable
This commit is contained in:
Martine Lenders 2016-04-17 16:32:19 +02:00
commit f90b607180

View File

@ -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)), ipv6_addr_to_str(ipv6_str, &(ipv6_hdr->src), sizeof(ipv6_str)),
byteorder_ntohs(icmpv6_hdr->id), seq, (unsigned)ipv6_hdr->hl, byteorder_ntohs(icmpv6_hdr->id), seq, (unsigned)ipv6_hdr->hl,
time / MS_IN_USEC, time % MS_IN_USEC); time / MS_IN_USEC, time % MS_IN_USEC);
#ifdef MODULE_GNRC_IPV6_NC
gnrc_ipv6_nc_still_reachable(&ipv6_hdr->src); gnrc_ipv6_nc_still_reachable(&ipv6_hdr->src);
#endif
} }
else { else {
puts("error: unexpected parameters"); puts("error: unexpected parameters");