summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-02 05:21:56 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-01-02 05:21:56 +0000
commit528d69ddd299c41863a7e712d40b623440b22a16 (patch)
treedb955c4ec96a4b6dfc6fe975dfe8b92a2c47ccd2
parente7c96660f60fdd84229096783bf861d1d4df29ea (diff)
echo "IPv6 autoconf: interfaces" before invoking rtsol.
sleep for net.inet6.ip6.dad_count seconds to ensure that IPv6 DAD is completed. TODO: rtsold (rc.conf line), manpage
-rw-r--r--etc/netstart8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/netstart b/etc/netstart
index b2630d00d60..db8ed5181ab 100644
--- a/etc/netstart
+++ b/etc/netstart
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: netstart,v 1.56 2000/01/02 05:14:52 itojun Exp $
+# $OpenBSD: netstart,v 1.57 2000/01/02 05:21:55 itojun Exp $
# Returns true if $1 contains only alphanumerics
isalphanumeric() {
@@ -153,11 +153,17 @@ if [ "$ip6kernel" = "YES" -a "x$rtsolif" != "x" ]; then
fw=`sysctl -n net.inet6.ip6.forwarding`
ra=`sysctl -n net.inet6.ip6.accept_rtadv`
if [ "x$fw" = "x0" -a "x$ra" = "x1" ]; then
+ echo "IPv6 autoconf:$rtsolif"
rtsol $rtsolif
else
echo "WARNING: inconsistent config - check /etc/sysctl.conf for IPv6 autoconf"
fi
fi
+if [ "$ip6kernel" = "YES" ]; then
+ # this is to make sure DAD is completed before going further.
+ sleep `sysctl -n net.inet6.ip6.dad_count`
+ sleep 1
+fi
for bn in /etc/bridgename.*; do
# Strip off /etc/bridgename. prefix