NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: install/58219: sysinst should check if IPv6 is available and set ip6addrctl_policy=ipv4_prefer if no



The following reply was made to PR install/58219; it has been noted by GNATS.

From: Sunil Nimmagadda <sunil%nimmagadda.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: install/58219: sysinst should check if IPv6 is available and
 set ip6addrctl_policy=ipv4_prefer if no
Date: Thu, 02 May 2024 11:32:15 +0530

 nia%pkgsrc.org@localhost writes:
 
 >>Number:         58219
 >>Category:       install
 >>Synopsis:       sysinst should check if IPv6 is available and set ip6addrctl_policy=ipv4_prefer if no
 >>Confidential:   no
 >>Severity:       serious
 >>Priority:       medium
 >>Responsible:    install-manager
 >>State:          open
 >>Class:          sw-bug
 >>Submitter-Id:   net
 >>Arrival-Date:   Wed May 01 08:10:00 +0000 2024
 >>Originator:     nia
 >>Release:        any netbsd release on QEMU
 >>Organization:
 > The AttemptingToConnectBSD Foundation
 >>Environment:
 >>Description:
 > Most virtual machines are buggy and report a fake ipv6 route.
 >
 > NetBSD's tools like ftp will hang for far too long attempting to reach an ipv6 address.
 >>How-To-Repeat:
 > install netbsd in qemu, use ftp
 >>Fix:
 > set
 >
 > ip6addrctl=YES
 > ip6addrctl_policy=ipv4_prefer
 >
 > in rc.conf when ipv6 is unavailable.
 
 This diff seems to fix the issue for me. Testing on amd64.
 
 -----
 Prefer Ipv4 if no working Ipv6 is detected during net configuration.
 
 Fixes install/58219.
 
 diff --git a/usr.sbin/sysinst/net.c b/usr.sbin/sysinst/net.c
 --- a/usr.sbin/sysinst/net.c
 +++ b/usr.sbin/sysinst/net.c
 @@ -1198,6 +1198,11 @@
  		add_rc_conf("wpa_supplicant_flags=\"-B -s -i %s -D bsd -c /etc/wpa_supplicant.conf\"\n", net_dev);
  	}
  
 +	if (!have_working_ipv6()) {
 +		add_rc_conf("ip6addrctl=YES");
 +		add_rc_conf("ip6addrctl_policy=ipv4_prefer");
 +	}
 +
  	if (ifconf)
  		fclose(ifconf);
  
 


Home | Main Index | Thread Index | Old Index