openwrt/package/utils
Baptiste Jonglez 7fea9d9f5d 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>
2021-05-14 15:56:20 +02:00
..
adb adb: fix for SuperSpeed devices 2019-12-23 00:22:07 +01:00
bcm27xx-userland bcm27xx-userland: update to latest version 2021-02-18 23:42:46 +01:00
bcm4908img firmware-utils: bcm4908img: convert into a package 2021-04-08 10:50:59 +02:00
bsdiff bsdiff: Also pass down TARGET_CPPFLAGS 2017-03-01 17:19:50 -08:00
busybox busybox: disable PREFER_IPV4_ADDRESS 2021-05-14 15:56:20 +02:00
bzip2 bzip2: add linker option LDFLAGS 2019-10-19 12:49:11 +02:00
checkpolicy checkpolicy: update to version 3.2 2021-03-08 21:27:35 +00:00
ct-bugcheck ct-bugcheck: report to https://openwrt.org by default 2019-08-18 15:23:25 +00:00
e2fsprogs build: reorder more BuildPackages lines to deal with ABI_VERSION 2021-02-16 11:29:38 +01:00
f2fs-tools f2fs-tools: update to 1.14.0 2021-02-14 19:38:15 +01:00
fbtest packages/utils: fbtest fix Makefile 2020-05-28 11:22:22 +02:00
fritz-tools fritz-tools: add support for IPQ40xx platform 2019-03-13 16:25:34 +01:00
jboot-tools firmware: add JBOOT based devices config extractor 2018-03-18 22:22:38 +01:00
jsonfilter jsonfilter: update to latest git HEAD 2018-03-14 18:48:23 +01:00
lua lua: add -ldl for glibc builds 2021-01-06 15:38:57 -10:00
lua5.3 lua5.3: include hpp header 2019-08-16 22:53:06 +02:00
mdadm mdadm: Use upstream fix for musl 1.1.23 compile 2019-08-17 00:30:52 +02:00
mtd-utils mtd-utils: remove lzo build dependency 2020-12-06 11:21:37 -10:00
nvram ar71xx: drop target 2020-08-30 22:18:35 +02:00
osafeloader packages: mark packages depending on a target as nonshared 2017-01-24 09:45:05 +01:00
oseama utils/oseama: drop Build/Prepare rule in favor of default one 2016-10-15 11:36:52 +02:00
otrx brcm47xx: rename target to bcm47xx 2020-02-14 14:10:51 +01:00
policycoreutils policycoreutils: update to version 3.2 2021-03-08 21:27:35 +00:00
px5g-mbedtls px5g: rename to px5g-mbedtls 2020-08-31 10:19:31 +01:00
px5g-wolfssl px5g-wolfssl: Fix certificate signature 2021-01-26 16:59:53 -10:00
ravpower-mcu ravpower-mcu: bump PKG_RELEASE 2020-07-15 09:56:23 +02:00
secilc secilc: update to version 3.2 2021-03-08 21:27:35 +00:00
spidev_test treewide: Remove self from MAINTAINER entries 2019-12-23 13:18:04 -08:00
ucode ucode: update to latest Git HEAD 2021-04-01 00:12:38 +02:00
ugps ugps: update to the latest version 2020-09-01 13:04:44 +02:00
usbmode usbmode: Update modeswitch data to 20191128 2020-02-22 16:38:41 +01:00
util-linux util-linux: move libuuid BuildPackage line further up to fix ABI versioning 2021-02-16 00:00:14 +01:00