Use NMRP_ETH_TIMEOUT_S constant for Ethernet socket timeout

This commit is contained in:
Eric Shu 2024-11-23 19:20:52 -08:00
parent 25945b162d
commit c85b503131

2
nmrp.c
View file

@ -540,7 +540,7 @@ int nmrp_do(struct nmrpd_args *args)
}
}
if (ethsock_set_timeout(sock, 20)) {
if (ethsock_set_timeout(sock, NMRP_ETH_TIMEOUT_S)) {
goto out;
}