diff --git a/net/devif/ipv6_input.c b/net/devif/ipv6_input.c index f2fc4e6118d..b68dc8ff603 100644 --- a/net/devif/ipv6_input.c +++ b/net/devif/ipv6_input.c @@ -335,8 +335,10 @@ int ipv6_input(FAR struct net_driver_s *dev) { /* Check if the packet is destined for us. */ - if (check_destipaddr(dev, ipv6)) + if (!check_destipaddr(dev, ipv6)) { + /* No.. the packet is not destined for us.. drop it */ + #ifdef CONFIG_NET_STATISTICS g_netstats.ipv6.drop++; #endif