arping: alarm() vs ualarm()

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Sun Apr 10 07:32:33 UTC 2022


On 7 April 2022 13:38:48 CEST, matthias.hottgenroth at icloud.com wrote:
>Hello all together,
>
>I’m using the busybox arping version to scan a larger number of systems. Lots of these systems don’t answer to the arping request.
>Due to the implementation of arping, the timeout has to be at least one second which leads to the fact that the scan duration is artificially extremely lengthened. After looking into the source code, I found out that this is mainly because the function alarm() is used. 
>After a simple adjustment of the timeout parameters and changing alarm(1) to ualarm(10000) I have achieved my desired behavior.
>
>Is there reason to use alarm() instead of ualarm() that I’m seeing here?

ualarm was removed in POSIX.1-2008

thanks,


More information about the busybox mailing list