version 1.55, 2000/01/02 04:38:17 |
version 1.56, 2000/01/02 05:14:52 |
|
|
# disallow "internal" addresses to appear on the wire. |
# disallow "internal" addresses to appear on the wire. |
route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject |
route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject |
route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject |
route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject |
|
|
|
rtsolif="" |
else |
else |
ip6kernel=NO |
ip6kernel=NO |
fi |
fi |
|
|
ifconfig $if $name $mask $bcaddr $ext1 $ext2 down |
ifconfig $if $name $mask $bcaddr $ext1 $ext2 down |
cmd="dhclient $if" |
cmd="dhclient $if" |
;; |
;; |
|
"rtsol") |
|
rtsolif="$rtsolif $if" |
|
;; |
"up") |
"up") |
# The only one of these guaranteed to be set is $if |
# The only one of these guaranteed to be set is $if |
# the remaining ones exist so that media controls work |
# the remaining ones exist so that media controls work |
|
|
eval "$cmd" |
eval "$cmd" |
done < /etc/hostname.$if |
done < /etc/hostname.$if |
done |
done |
|
|
|
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 |
|
rtsol $rtsolif |
|
else |
|
echo "WARNING: inconsistent config - check /etc/sysctl.conf for IPv6 autoconf" |
|
fi |
|
fi |
|
|
for bn in /etc/bridgename.*; do |
for bn in /etc/bridgename.*; do |
# Strip off /etc/bridgename. prefix |
# Strip off /etc/bridgename. prefix |
if=${bn#/etc/bridgename.} |
if=${bn#/etc/bridgename.} |