diff --git a/net/icmpv6/icmpv6_input.c b/net/icmpv6/icmpv6_input.c index 7258c79dff..ed2555b12a 100644 --- a/net/icmpv6/icmpv6_input.c +++ b/net/icmpv6/icmpv6_input.c @@ -269,7 +269,7 @@ void icmpv6_input(FAR struct net_driver_s *dev, unsigned int iplen) { /* Save the sender's address mapping in our Neighbor Table. */ - neighbor_add(dev, ipicmp->srcipaddr, sol->srclladdr); + neighbor_add(dev, ipv6->srcipaddr, sol->srclladdr); } /* Yes.. Send a neighbor advertisement back to where the neighbor