Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Remove the ping6 ff02::2 test, it looks pre...



details:   https://anonhg.NetBSD.org/src/rev/09c4a383ab5f
branches:  trunk
changeset: 802609:09c4a383ab5f
user:      roy <roy%NetBSD.org@localhost>
date:      Mon Sep 22 18:47:41 2014 +0000

description:
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.

diffstat:

 usr.sbin/sysinst/net.c |  15 +++------------
 1 files changed, 3 insertions(+), 12 deletions(-)

diffs (37 lines):

diff -r 489c210e594d -r 09c4a383ab5f usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c    Mon Sep 22 14:25:32 2014 +0000
+++ b/usr.sbin/sysinst/net.c    Mon Sep 22 18:47:41 2014 +0000
@@ -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 @@
         * 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 @@
                        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;



Home | Main Index | Thread Index | Old Index