Browse Source

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
OPENBSD_2_7
itojun 25 years ago
parent
commit
26e17f25b4
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      src/etc/netstart

+ 7
- 1
src/etc/netstart View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 # Returns true if $1 contains only alphanumerics
isalphanumeric() { isalphanumeric() {
@ -153,11 +153,17 @@ if [ "$ip6kernel" = "YES" -a "x$rtsolif" != "x" ]; then
fw=`sysctl -n net.inet6.ip6.forwarding` fw=`sysctl -n net.inet6.ip6.forwarding`
ra=`sysctl -n net.inet6.ip6.accept_rtadv` ra=`sysctl -n net.inet6.ip6.accept_rtadv`
if [ "x$fw" = "x0" -a "x$ra" = "x1" ]; then if [ "x$fw" = "x0" -a "x$ra" = "x1" ]; then
echo "IPv6 autoconf:$rtsolif"
rtsol $rtsolif rtsol $rtsolif
else else
echo "WARNING: inconsistent config - check /etc/sysctl.conf for IPv6 autoconf" echo "WARNING: inconsistent config - check /etc/sysctl.conf for IPv6 autoconf"
fi fi
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 for bn in /etc/bridgename.*; do
# Strip off /etc/bridgename. prefix # Strip off /etc/bridgename. prefix


Loading…
Cancel
Save