From 0008ff33b3172bc0cbd5a8f226506cfd33ab82e0 Mon Sep 17 00:00:00 2001 From: Bernd Walter Date: Wed, 25 Sep 2019 06:29:02 -0600 Subject: [PATCH] net/icmpv6/icmpv6_rnotify.c: Correct a bad index in debug output. --- net/icmpv6/icmpv6_rnotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/icmpv6/icmpv6_rnotify.c b/net/icmpv6/icmpv6_rnotify.c index f6b32b01a9..dbc6e24b06 100644 --- a/net/icmpv6/icmpv6_rnotify.c +++ b/net/icmpv6/icmpv6_rnotify.c @@ -135,7 +135,7 @@ static void icmpv6_setaddresses(FAR struct net_driver_s *dev, ninfo("prefix=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n", ntohs(prefix[0]), ntohs(prefix[1]), ntohs(prefix[2]), - ntohs(prefix[3]), ntohs(prefix[4]), ntohs(prefix[6]), + ntohs(prefix[3]), ntohs(prefix[4]), ntohs(prefix[5]), ntohs(prefix[6]), ntohs(prefix[7])); ninfo("IP address=%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n", ntohs(dev->d_ipv6addr[0]), ntohs(dev->d_ipv6addr[1]),