]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/nsrep: respect -DFAVOUR_IPV6=X
authorMarek Vavrusa <marek@vavrusa.com>
Mon, 5 Sep 2016 00:40:22 +0000 (17:40 -0700)
committerMarek Vavrusa <marek@vavrusa.com>
Mon, 5 Sep 2016 00:40:22 +0000 (17:40 -0700)
maintainer may wish to choose neutral or even
more favoured server selection of IPv6 servers.

-DFAVOUR_IPV6=0 makes neutral server selection
-DFAVOUR_IPV6=40 gives IPv6 40ms better chance

lib/nsrep.c

index 8b47e171eb3482ed6f9209b946b85494d34c5218..6b2df27bbf3cfc33fc3a6092d25dff223a1cac8a 100644 (file)
@@ -27,7 +27,9 @@
 #include "contrib/ucw/lib.h"
 
 /** Some built-in unfairness ... */
+#ifndef FAVOUR_IPV6
 #define FAVOUR_IPV6 20 /* 20ms bonus for v6 */
+#endif
 
 /** @internal Macro to set address structure. */
 #define ADDR_SET(sa, family, addr, len, port) do {\