mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
ARP: Fix bid conversion from msec to nsec
This commit is contained in:
@@ -196,6 +196,10 @@ int arp_wait(FAR struct arp_notify_s *notify, FAR struct timespec *timeout)
|
|||||||
abstime.tv_nsec -= 1000000000;
|
abstime.tv_nsec -= 1000000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* REVISIT: If sem_timedwait() is awakened with signal, we will return
|
||||||
|
* the wrong error code.
|
||||||
|
*/
|
||||||
|
|
||||||
(void)sem_timedwait(¬ify->nt_sem, &abstime);
|
(void)sem_timedwait(¬ify->nt_sem, &abstime);
|
||||||
ret = notify->nt_result;
|
ret = notify->nt_result;
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -65,7 +65,7 @@
|
|||||||
#define CONFIG_ARP_SEND_DELAYSEC \
|
#define CONFIG_ARP_SEND_DELAYSEC \
|
||||||
(CONFIG_ARP_SEND_DELAYMSEC / 1000)
|
(CONFIG_ARP_SEND_DELAYMSEC / 1000)
|
||||||
#define CONFIG_ARP_SEND_DELAYNSEC \
|
#define CONFIG_ARP_SEND_DELAYNSEC \
|
||||||
((CONFIG_ARP_SEND_DELAYMSEC - 1000*CONFIG_ARP_SEND_DELAYSEC) / 1000000)
|
((CONFIG_ARP_SEND_DELAYMSEC - 1000*CONFIG_ARP_SEND_DELAYSEC) * 1000000)
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Types
|
* Private Types
|
||||||
|
|||||||
Reference in New Issue
Block a user