immortalwrt/package
Baptiste Jonglez b62fa7453a busybox: disable PREFER_IPV4_ADDRESS
PREFER_IPV4_ADDRESS is broken on IPv6-only hosts, as it causes busybox
utilities (ping, traceroute, ntpd) to forcibly use the A record instead of
the AAAA record when resolving a DNS name.  This obviously fails when
there is no IPv4 connectivity.  Since IPv6-only hosts or routers will only
become more common over time, disable PREFER_IPV4_ADDRESS to support this
use-case.

As a side-effect, disabling PREFER_IPV4_ADDRESS changes the default
resolution behaviour of busybox utilities on dual-stack hosts.  Busybox
utilities now simply use the order given by getaddrinfo(), so they will
now prefer IPv6 addresses when resolving a name with both A and AAAA
records if there is IPv6 connectivity.  This is in line with RFC 6724.

PREFER_IPV4_ADDRESS was likely intended to work around naive
implementations of getaddrinfo() that could return AAAA records first,
even on an IPv4-only host.  But both musl (since 1.1.3) and glibc
correctly implement RFC 6724 for getaddrinfo() and check connectivity to
determine the correct order in which to return records.  On IPv4-only
hosts, getaddrinfo() will return A records first, so there is no need for
the PREFER_IPV4_ADDRESS hack.

See also: https://bugs.busybox.net/show_bug.cgi?id=12381

Fixes: FS#84
Fixes: FS#2608
References: https://github.com/openwrt/openwrt/pull/4167
Signed-off-by: Alexander Traud <pabstraud@compuserve.com>
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
(cherry picked from commit 7fea9d9f5d)
2021-05-17 23:03:13 +02:00
..
base-files base-files: shinit: properly handle dashes in service names 2021-05-12 12:45:38 +02:00
boot realtek: Add ZyXEL GS1900-8 2021-04-18 12:06:18 +02:00
devel binutils: fix libbfd missing DSO dependency if NLS enabled 2021-04-10 14:22:28 +02:00
firmware ipq40xx: add support for MikroTik SXTsq 5 ac 2021-05-03 14:57:29 +02:00
kernel mt76: update to the latest version 2021-05-16 08:48:22 +02:00
libs libnfnetlink: quote $(FPIC) on command line 2021-04-12 20:45:29 +02:00
network uqmi: fix network registration loop 2021-05-11 19:56:20 +02:00
system openwrt-keyring: Only copy sign key for 21.02 2021-05-17 19:13:43 +02:00
utils busybox: disable PREFER_IPV4_ADDRESS 2021-05-17 23:03:13 +02:00
Makefile build: always build package/kernel/linux 2020-10-15 13:25:58 +02:00