Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst rtsol is no longer used.
details: https://anonhg.NetBSD.org/src/rev/09aad7bbb96a
branches: trunk
changeset: 332248:09aad7bbb96a
user: roy <roy%NetBSD.org@localhost>
date: Fri Sep 12 21:12:42 2014 +0000
description:
rtsol is no longer used.
diffstat:
usr.sbin/sysinst/net.c | 62 +-------------------------------------------------
1 files changed, 1 insertions(+), 61 deletions(-)
diffs (97 lines):
diff -r 2657f5bbc017 -r 09aad7bbb96a usr.sbin/sysinst/net.c
--- a/usr.sbin/sysinst/net.c Fri Sep 12 21:06:25 2014 +0000
+++ b/usr.sbin/sysinst/net.c Fri Sep 12 21:12:42 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: net.c,v 1.8 2014/09/12 21:02:06 roy Exp $ */
+/* $NetBSD: net.c,v 1.9 2014/09/12 21:12:42 roy Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -107,8 +107,6 @@
#ifdef INET6
static int is_v6kernel (void);
-static void init_v6kernel (int);
-static int get_v6wait (void);
#endif
/*
@@ -434,41 +432,6 @@
close(s);
return 1;
}
-
-/*
- * initialize as v6 client.
- * we are sure that we will never become router with boot floppy :-)
- * (include and use sysctl(8) if you are willing to)
- */
-static void
-init_v6kernel(int autoconf)
-{
- int v;
- int mib[4] = {CTL_NET, PF_INET6, IPPROTO_IPV6, 0};
-
- mib[3] = IPV6CTL_FORWARDING;
- v = 0;
- (void)sysctl(mib, 4, NULL, NULL, (void *)&v, sizeof(v));
-
- mib[3] = IPV6CTL_ACCEPT_RTADV;
- v = autoconf ? 1 : 0;
- (void)sysctl(mib, 4, NULL, NULL, (void *)&v, sizeof(v));
-}
-
-static int
-get_v6wait(void)
-{
- size_t len = sizeof(int);
- int v;
- int mib[4] = {CTL_NET, PF_INET6, IPPROTO_IPV6, IPV6CTL_DAD_COUNT};
-
- len = sizeof(v);
- if (sysctl(mib, 4, (void *)&v, &len, NULL, 0) < 0) {
- /* warn("sysctl(net.inet6.ip6.dadcount)"); */
- return 1; /* guess */
- }
- return v;
-}
#endif
static int
@@ -849,16 +812,6 @@
fclose(f);
}
-#ifdef INET6
- if (v6config && !nfs_root) {
- init_v6kernel(1);
- run_program(0, "/sbin/ifconfig %s up", net_dev);
- sleep(get_v6wait() + 1);
- run_program(RUN_DISPLAY, "/sbin/rtsol -D %s", net_dev);
- sleep(get_v6wait() + 1);
- }
-#endif
-
if (net_ip[0] != '\0') {
if (slip) {
/* XXX: needs 'ifconfig sl0 create' much earlier */
@@ -1217,19 +1170,6 @@
add_rc_conf("dhcpcd_flags=\"-qM %s\"\n", net_dev);
}
-#ifdef INET6
- if ((net_ip6conf & IP6CONF_AUTOHOST) != 0) {
- if (del_rc_conf("ip6mode") == 0)
- add_rc_conf("ip6mode=autohost\n");
- if (ifconf != NULL) {
- scripting_fprintf(NULL, "cat <<EOF >>%s%s\n",
- target_prefix(), ifconfig_fn);
- scripting_fprintf(ifconf, "!rtsol $int\n");
- scripting_fprintf(NULL, "EOF\n");
- }
- }
-#endif
-
if (ifconf)
fclose(ifconf);
Home |
Main Index |
Thread Index |
Old Index