summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-14 10:18:33 +0000
committerDenis Vlasenko2007-11-14 10:18:33 +0000
commit9d6c46955fb51d7867e0d8d0ed94006ab72e4821 (patch)
treeab5d74afb28887ad9ce249e6ba0e1c69844e64e6 /networking
parent8d0a734d91ff197a86ce0b8fc892e24a15783395 (diff)
downloadbusybox-9d6c46955fb51d7867e0d8d0ed94006ab72e4821.zip
busybox-9d6c46955fb51d7867e0d8d0ed94006ab72e4821.tar.gz
Introduce FEATURE_PREFER_IPV4_ADDRESS. If selected, we have:
function old new delta str2sockaddr 328 344 +16
Diffstat (limited to 'networking')
-rw-r--r--networking/Config.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/networking/Config.in b/networking/Config.in
index b5b4597..b50aacf 100644
--- a/networking/Config.in
+++ b/networking/Config.in
@@ -12,6 +12,21 @@ config FEATURE_IPV6
Enable IPv6 support in busybox.
This adds IPv6 support in the networking applets.
+config FEATURE_PREFER_IPV4_ADDRESS
+ bool "Preferentially use IPv4 addresses from DNS queries"
+ default y
+ depends on FEATURE_IPV6
+ help
+ Use IPv4 address of network host if it has one.
+
+ If this option is off, the first returned address will be used.
+ This may cause problems when your DNS server is IPv6-capable and
+ is returning IPv6 host addresses too. If IPv6 address
+ precedes IPv4 one in DNS reply, busybox network applets
+ (e.g. wget) will use IPv6 address. On an IPv6-incapable host
+ or network applets will fail to connect to the host
+ using IPv6 address.
+
config VERBOSE_RESOLUTION_ERRORS
bool "Verbose resolution errors"
default n