-
Committer:
Ben Hutchings
-
Date:
2023-06-04 23:28:00 UTC
-
Revision ID:
git-v1:39fde2337ee32d2b21df6826b4173c8374ae65dd
[klibc] ipconfig: Retry failed send after 1 second
Currently we check whether a device has link down before attempting to
send a packet, but the send can still fail with ENETDOWN - perhaps due
to racing with the kernel's linkwatch work. After such an error we'll
wait about 10 seconds before retrying.
Since the link check isn't reliable, remove it. Instead, wait only 1
second if we fail to send a packet.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>