Return-Path: Received: from bsmtp2.bon.at (bsmtp2.bon.at [213.33.87.16]) by mail.openembedded.org (Postfix) with ESMTP id 90FB67E31D for ; Mon, 20 Jan 2020 12:32:47 +0000 (UTC) Received: from qschulz (vpn.streamunlimited.com [91.114.0.140]) by bsmtp2.bon.at (Postfix) with ESMTPSA id 481WKC6ZdPz5tlG; Mon, 20 Jan 2020 13:32:47 +0100 (CET) Date: Mon, 20 Jan 2020 13:32:46 +0100 From: Quentin Schulz To: Stefan Agner Message-ID: <20200120123246.o5abx73ehcoqbbim@qschulz> References: <20180514144415.40730-1-stefan@agner.ch> <20200113145729.amwegnpvnp2kb3ut@qschulz> MIME-Version: 1.0 In-Reply-To: <20200113145729.amwegnpvnp2kb3ut@qschulz> User-Agent: NeoMutt/20180716 Cc: Stefan Agner , openembedded-core@lists.openembedded.org Subject: Re: busybox: udhcpc: fix IPv6 support when using udhcpc X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2020 12:32:48 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi all, On Mon, Jan 13, 2020 at 03:57:31PM +0100, Quentin Schulz wrote: > Hi all, > > On Mon, May 14, 2018 at 04:44:15PM +0200, Stefan Agner wrote: > > From: Stefan Agner > > > > 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 > > --- > > 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 6ed0293525..8b5eb53633 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 > > Kindly pinging, happened to us as well many times. > Kindly pinging. Quentin