summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-11-20 12:51:12 +0000
committerume <ume@FreeBSD.org>2001-11-20 12:51:12 +0000
commit78d7a09422d5b05d5799a03d13c8a21ab9931ee4 (patch)
tree1decf31e9a567821b7fe5e31ba509001f0d3d9ae /etc
parentdbbdb537c13a23e224bd55bee43d364f67710964 (diff)
downloadFreeBSD-src-78d7a09422d5b05d5799a03d13c8a21ab9931ee4.zip
FreeBSD-src-78d7a09422d5b05d5799a03d13c8a21ab9931ee4.tar.gz
The rtsol must be done before the alias processing.
PR: conf/31366 Submitted by: gshapiro MFC after: 1 week
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/network_ipv621
-rw-r--r--etc/rc.network621
2 files changed, 24 insertions, 18 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index 1dc8473..37dfae5 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -320,15 +320,6 @@ network6_interface_setup() {
rtsol_interface=no
ifconfig $i inet6 ${ipv6_ifconfig} alias
fi
- alias=0
- while : ; do
- eval ipv6_ifconfig=\$ipv6_ifconfig_${i}_alias${alias}
- if [ -z "${ipv6_ifconfig}" ]; then
- break;
- fi
- ifconfig $i inet6 ${ipv6_ifconfig} alias
- alias=$((${alias} + 1))
- done
if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ]
then
@@ -354,6 +345,18 @@ network6_interface_setup() {
ifconfig $1 up
rtsol $1
fi
+
+ for i in $interfaces; do
+ alias=0
+ while : ; do
+ eval ipv6_ifconfig=\$ipv6_ifconfig_${i}_alias${alias}
+ if [ -z "${ipv6_ifconfig}" ]; then
+ break;
+ fi
+ ifconfig $i inet6 ${ipv6_ifconfig} alias
+ alias=$((${alias} + 1))
+ done
+ done
}
network6_stf_setup() {
diff --git a/etc/rc.network6 b/etc/rc.network6
index 1dc8473..37dfae5 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -320,15 +320,6 @@ network6_interface_setup() {
rtsol_interface=no
ifconfig $i inet6 ${ipv6_ifconfig} alias
fi
- alias=0
- while : ; do
- eval ipv6_ifconfig=\$ipv6_ifconfig_${i}_alias${alias}
- if [ -z "${ipv6_ifconfig}" ]; then
- break;
- fi
- ifconfig $i inet6 ${ipv6_ifconfig} alias
- alias=$((${alias} + 1))
- done
if [ ${rtsol_available} = yes -a ${rtsol_interface} = yes ]
then
@@ -354,6 +345,18 @@ network6_interface_setup() {
ifconfig $1 up
rtsol $1
fi
+
+ for i in $interfaces; do
+ alias=0
+ while : ; do
+ eval ipv6_ifconfig=\$ipv6_ifconfig_${i}_alias${alias}
+ if [ -z "${ipv6_ifconfig}" ]; then
+ break;
+ fi
+ ifconfig $i inet6 ${ipv6_ifconfig} alias
+ alias=$((${alias} + 1))
+ done
+ done
}
network6_stf_setup() {
OpenPOWER on IntegriCloud