[oe-commits] [openembedded-core] 28/28: busybox: udhcpc: fix IPv6 support when using udhcpc

git at git.openembedded.org git at git.openembedded.org
Mon Jan 20 23:06:48 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 0058e1a5ab268168fc8b35e24caaee4285aeb6d3
Author: Stefan Agner <stefan.agner at toradex.com>
AuthorDate: Mon May 14 16:44:15 2018 +0200

    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 at toradex.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/busybox/files/simple.script | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/busybox/files/simple.script b/meta/recipes-core/busybox/files/simple.script
index 6ed0293..8b5eb53 100644
--- a/meta/recipes-core/busybox/files/simple.script
+++ b/meta/recipes-core/busybox/files/simple.script
@@ -28,7 +28,7 @@ case "$1" in
 		fi
 		if ! root_is_nfs ; then
                         if [ $have_bin_ip -eq 1 ]; then
-                                /SBIN_DIR/ip addr flush dev $interface
+                                /SBIN_DIR/ip -4 addr flush dev $interface
                                 /SBIN_DIR/ip link set dev $interface up
                         else
                                 /SBIN_DIR/ifconfig $interface 0.0.0.0

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list