Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] busybox: udhcpc: fix IPv6 support when using udhcpc
@ 2018-05-14 14:44 Stefan Agner
  2019-06-24 12:24 ` Stefan Agner
  2020-01-13 14:57 ` Quentin Schulz
  0 siblings, 2 replies; 11+ messages in thread
From: Stefan Agner @ 2018-05-14 14:44 UTC (permalink / raw)
  To: openembedded-core; +Cc: Stefan Agner

From: Stefan Agner <stefan.agner@toradex.com>

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>
---
 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
-- 
2.13.6



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-06-17  9:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-14 14:44 [PATCH] busybox: udhcpc: fix IPv6 support when using udhcpc Stefan Agner
2019-06-24 12:24 ` Stefan Agner
2020-01-13 14:57 ` Quentin Schulz
2020-01-20 12:32   ` Quentin Schulz
2020-01-20 12:57     ` Stefan Agner
2020-01-20 19:26       ` Khem Raj
2020-01-21  9:23         ` Quentin Schulz
2020-01-21 18:08           ` Khem Raj
2020-01-22 10:06             ` Quentin Schulz
2020-06-16  9:50               ` [OE-core] " Quentin Schulz
2020-06-17  9:12                 ` Stefan Agner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox