Module Name:    src
Committed By:   roy
Date:           Mon Sep 22 18:47:41 UTC 2014

Modified Files:
        src/usr.sbin/sysinst: net.c

Log Message:
Remove the ping6 ff02::2 test, it looks pretty pointless.
dhcpcd will ensure the IPv6 network is up before forking.
ping the IPv4 default route before the nameserver as the nameserver
could be over the default route anyway.

Fixes the core issue with PR install/49231.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/sysinst/net.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/net.c
diff -u src/usr.sbin/sysinst/net.c:1.15 src/usr.sbin/sysinst/net.c:1.16
--- src/usr.sbin/sysinst/net.c:1.15	Sat Sep 13 17:22:22 2014
+++ src/usr.sbin/sysinst/net.c	Mon Sep 22 18:47:41 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: net.c,v 1.15 2014/09/13 17:22:22 martin Exp $	*/
+/*	$NetBSD: net.c,v 1.16 2014/09/22 18:47:41 roy Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -850,14 +850,9 @@ done:
 	 * ping should be verbose, so users can see the cause
 	 * of a network failure.
 	 */
-
-#ifdef INET6
-	if (v6config && network_up) {
+	if (net_defroute[0] != '\0' && network_up)
 		network_up = !run_program(RUN_DISPLAY | RUN_PROGRESS,
-		    "/sbin/ping6 -v -c 3 -n -I %s ff02::2", net_dev);
-	}
-#endif
-
+		    "/sbin/ping -v -c 5 -w 5 -o -n %s", net_defroute);
 	if (net_namesvr[0] != '\0' && network_up) {
 #ifdef INET6
 		if (strchr(net_namesvr, ':'))
@@ -868,10 +863,6 @@ done:
 			network_up = !run_program(RUN_DISPLAY | RUN_PROGRESS,
 			    "/sbin/ping -v -c 5 -w 5 -o -n %s", net_namesvr);
 	}
-
-	if (net_defroute[0] != '\0' && network_up)
-		network_up = !run_program(RUN_DISPLAY | RUN_PROGRESS,
-		    "/sbin/ping -v -c 5 -w 5 -o -n %s", net_defroute);
 	fflush(NULL);
 
 	return network_up;

Reply via email to