From 26e17f25b46808e8d31c34ca881803a0fa6ea9b8 Mon Sep 17 00:00:00 2001 From: itojun <> Date: Sun, 2 Jan 2000 05:21:55 +0000 Subject: [PATCH] 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 --- src/etc/netstart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/etc/netstart b/src/etc/netstart index b2630d00..db8ed518 100644 --- a/src/etc/netstart +++ b/src/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