Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst run IPv6 configuration even if we use ...
details: https://anonhg.NetBSD.org/src/rev/a1c9c2adb3dd
branches: trunk
changeset: 495201:a1c9c2adb3dd
user: itojun <itojun%NetBSD.org@localhost>
date: Mon Jul 24 06:05:51 2000 +0000
description:
run IPv6 configuration even if we use dhcp. background:
- on a IPv6/v4 dual stack network, it makes more sense to configure both.
- also, many of IPv4/v6 dual stack network requires us to contacd DNS
over IPv4 transport.
discussed with cyber%netbsd.org@localhost.
diffstat:
distrib/utils/sysinst/net.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (32 lines):
diff -r b83b6273365a -r a1c9c2adb3dd distrib/utils/sysinst/net.c
--- a/distrib/utils/sysinst/net.c Mon Jul 24 04:54:16 2000 +0000
+++ b/distrib/utils/sysinst/net.c Mon Jul 24 06:05:51 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: net.c,v 1.59 2000/07/02 15:07:52 itojun Exp $ */
+/* $NetBSD: net.c,v 1.60 2000/07/24 06:05:51 itojun Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -440,9 +440,7 @@
get_ifinterface_info();
pass = strlen(net_mask) == 0 ? 0 : 1;
needmedia = strlen(net_media) == 0 ? 0 : 1;
- if(dhcp_config) {
- /* disable ipv6 */
- v6config=0;
+ if (dhcp_config) {
/* run route show and extract data */
get_command_out(net_defroute,"/sbin/route show 2>/dev/null","default");
/* pull nameserver info out of /etc/resolv.conf */
@@ -483,9 +481,9 @@
#ifdef INET6
/* IPv6 autoconfiguration */
- if (!is_v6kernel() )
+ if (!is_v6kernel())
v6config = 0;
- else if(v6config) { /* dhcp config will disable this */
+ else if (v6config) { /* dhcp config will disable this */
process_menu(MENU_ip6autoconf);
v6config = yesno ? 1 : 0;
}
Home |
Main Index |
Thread Index |
Old Index