ARP: Fix bid conversion from msec to nsec
This commit is contained in:
parent
a9ca05266b
commit
8e84282c05
@ -196,6 +196,10 @@ int arp_wait(FAR struct arp_notify_s *notify, FAR struct timespec *timeout)
|
||||
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);
|
||||
ret = notify->nt_result;
|
||||
|
||||
|
@ -65,7 +65,7 @@
|
||||
#define CONFIG_ARP_SEND_DELAYSEC \
|
||||
(CONFIG_ARP_SEND_DELAYMSEC / 1000)
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user