Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d we need to sleep for IPv6 DAD period, before and af...
details: https://anonhg.NetBSD.org/src/rev/f521a92fd855
branches: trunk
changeset: 495615:f521a92fd855
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Aug 01 20:49:11 2000 +0000
description:
we need to sleep for IPv6 DAD period, before and after rtsol.
(they are for stability in boot-time configuration)
comment from perry.
diffstat:
etc/rc.d/network | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
diffs (46 lines):
diff -r 257045ad56c1 -r f521a92fd855 etc/rc.d/network
--- a/etc/rc.d/network Tue Aug 01 20:01:52 2000 +0000
+++ b/etc/rc.d/network Tue Aug 01 20:49:11 2000 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: network,v 1.16 2000/07/25 18:47:28 jdolecek Exp $
+# $NetBSD: network,v 1.17 2000/08/01 20:49:11 itojun Exp $
#
# PROVIDE: network
@@ -290,6 +290,13 @@
esac
+ # wait till DAD is completed. always invoke it in case
+ # if are configured manually by ifconfig
+ #
+ dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null`
+ sleep $dadcount
+ sleep 1
+
if checkyesno rtsol; then
if [ "$ip6mode" = "autohost" ]; then
echo 'Sending router solicitation...'
@@ -299,14 +306,13 @@
warn \
"ip6mode must be set to 'autohost' to use rtsol."
fi
+
+ # wait till DAD is completed. always invoke it in case
+ # if are configured manually by ifconfig
+ #
+ sleep $dadcount
+ sleep 1
fi
-
- # wait till DAD is completed. always invoke it in case if are
- # configured manually by ifconfig
- #
- dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null`
- sleep $dadcount
- sleep 1
fi
# XXX this must die
Home |
Main Index |
Thread Index |
Old Index