mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
net/arp/arp_out.c: Fix some backward logic in an if condition.
This commit is contained in:
+1
-1
@@ -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 */
|
/* Check if we already have this destination address in the ARP table */
|
||||||
|
|
||||||
ret = arp_find(ipaddr, ðaddr);
|
ret = arp_find(ipaddr, ðaddr);
|
||||||
if (ret >= 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
ninfo("ARP request for IP %08lx\n", (unsigned long)ipaddr);
|
ninfo("ARP request for IP %08lx\n", (unsigned long)ipaddr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user