Skip to content
Snippets Groups Projects
Commit 036bb345 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

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

parent c3b14f98
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment