net:/ Fix a backward logic in a conditional tested added yesterday.
This commit is contained in:
parent
c3b14f98ea
commit
036bb345a1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user