]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
util: set max wait for IPv6 DAD to 20 seconds
authorLaine Stump <laine@laine.org>
Thu, 29 Oct 2015 18:09:59 +0000 (14:09 -0400)
committerLaine Stump <laine@laine.org>
Thu, 29 Oct 2015 19:49:38 +0000 (15:49 -0400)
This was originally set to 5 seconds, but times of 5.5 to 7 seconds
were experienced. Since it's an arbitrary number intended to prevent
an infinite hang, having it a bit too high won't hurt anything, and 20
seconds looks to be adequate (i.e. I think/hope we don't need to make
it tunable in libvirtd.conf)

src/util/virnetdev.c

index c8861e979ff4a544e6aaff7ebc59bc1e3c14d419..ab006054b6a8e8f2d3f0594ff4c9fd0cb273cdcd 100644 (file)
@@ -96,7 +96,7 @@ VIR_LOG_INIT("util.netdev");
 # define FEATURE_BIT_IS_SET(blocks, index, field)        \
     (FEATURE_WORD(blocks, index, field) & FEATURE_FIELD_FLAG(index))
 #endif
-#define VIR_DAD_WAIT_TIMEOUT 5 /* seconds */
+#define VIR_DAD_WAIT_TIMEOUT 20 /* seconds */
 
 typedef enum {
     VIR_MCAST_TYPE_INDEX_TOKEN,