net:/ Fix a backward logic in a conditional tested added yesterday.

This commit is contained in:
Gregory Nutt 2017-06-28 14:12:17 -06:00
parent c3b14f98ea
commit 036bb345a1

View File

@ -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