summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--osdep/LinuxNetLink.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/LinuxNetLink.cpp b/osdep/LinuxNetLink.cpp
index 6645a856..a276b407 100644
--- a/osdep/LinuxNetLink.cpp
+++ b/osdep/LinuxNetLink.cpp
@@ -850,6 +850,10 @@ void LinuxNetLink::addAddress(const InetAddress &addr, const char *iface)
#endif
int interface_index = _indexForInterface(iface);
+ for (int reps = 0; interface_index == -1 && reps < 10; ++reps) {
+ Thread::sleep(100);
+ interface_index == _indexForInterface(iface);
+ }
if (interface_index == -1) {
fprintf(stderr, "Unable to find index for interface %s\n", iface);