From bb92b98dc0eec31b38164f9177a84458bce8adb3 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 29 Aug 2018 10:51:44 -0600 Subject: [PATCH] net/arp/arp_out.c: Fix some backward logic in an if condition. --- net/arp/arp_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/arp/arp_out.c b/net/arp/arp_out.c index c9be188b9d..ab5b6415f9 100644 --- a/net/arp/arp_out.c +++ b/net/arp/arp_out.c @@ -252,7 +252,7 @@ void arp_out(FAR struct net_driver_s *dev) /* Check if we already have this destination address in the ARP table */ ret = arp_find(ipaddr, ðaddr); - if (ret >= 0) + if (ret < 0) { ninfo("ARP request for IP %08lx\n", (unsigned long)ipaddr);