]> code.ossystems Code Review - openembedded-core.git/commit
busybox: udhcpc: fix IPv6 support when using udhcpc
authorStefan Agner <stefan.agner@toradex.com>
Mon, 14 May 2018 14:44:15 +0000 (16:44 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jan 2020 12:52:48 +0000 (12:52 +0000)
commitb77541dbb2f442e51842f9d24c8745a6df2d1478
tree2fc0966fc206a53cda9a07df232f0a1dff474fd2
parentf741c342722aaeb1fbe03e700157fc3a2a1fe12f
busybox: udhcpc: fix IPv6 support when using udhcpc

The udhcpc script calls ip addr flush .. which flushes addresses
of any address family, including IPv6. However, busybox udhcpc is
IPv4 only and should not influence IPv6 addressing. Hence use ip
addr flush with family constrait.

The script particularly broke IPv6 SLAAC: Typically when udhcpc
calls the script the kernel already assigned the IPv6 link-local
address. The flush removes the link-local IPv6 address again and
prohibits proper IPv6 operation such as SLAAC since neighbor
discovery protocol relies on IPv6 link-local addressing.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/files/simple.script