summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2001-01-25 13:18:26 +0000
committerume <ume@FreeBSD.org>2001-01-25 13:18:26 +0000
commit1019384e319fdb89ffc37ac19df0929c02c0629c (patch)
tree02d470ef1cd8d133a20e5fb5a54ecfaaa8ec16f0
parentcc0609f430e7daa4b50840ffa3c84a3929ac9f15 (diff)
downloadFreeBSD-src-1019384e319fdb89ffc37ac19df0929c02c0629c.zip
FreeBSD-src-1019384e319fdb89ffc37ac19df0929c02c0629c.tar.gz
- Don't try to send RA to lo0, gifN and faithN.
- ipv6_network_interfaces has all available interfaces to work for static configuration even if the host is end host. When rtsol is invoked, singleness of interface is checked.
-rw-r--r--etc/rc.d/network_ipv624
-rw-r--r--etc/rc.network624
2 files changed, 10 insertions, 38 deletions
diff --git a/etc/rc.d/network_ipv6 b/etc/rc.d/network_ipv6
index aa50306..6b4809f 100644
--- a/etc/rc.d/network_ipv6
+++ b/etc/rc.d/network_ipv6
@@ -91,24 +91,10 @@ network6_pass1() {
case ${ipv6_network_interfaces} in
[Aa][Uu][Tt][Oo])
- case ${ipv6_gateway_enable} in
- [Yy][Ee][Ss])
- #
- # list of interfaces, and prefix for interfaces
- #
- ipv6_network_interfaces="`ifconfig -l`"
- ;;
- *)
- #
- # manual configurations - in case ip6_gateway_enable=NO
- # you can configure only single interface,
- # as specification assumes that
- # autoconfigured host has single interface only.
- #
- set `ifconfig -l`
- ipv6_network_interfaces="$1"
- ;;
- esac
+ #
+ # list of interfaces, and prefix for interfaces
+ #
+ ipv6_network_interfaces="`ifconfig -l`"
;;
esac
@@ -211,7 +197,7 @@ network6_pass1() {
'')
for i in ${ipv6_network_interfaces}; do
case $i in
- stf*)
+ lo0|gif*|stf*|faith*)
continue
;;
*)
diff --git a/etc/rc.network6 b/etc/rc.network6
index aa50306..6b4809f 100644
--- a/etc/rc.network6
+++ b/etc/rc.network6
@@ -91,24 +91,10 @@ network6_pass1() {
case ${ipv6_network_interfaces} in
[Aa][Uu][Tt][Oo])
- case ${ipv6_gateway_enable} in
- [Yy][Ee][Ss])
- #
- # list of interfaces, and prefix for interfaces
- #
- ipv6_network_interfaces="`ifconfig -l`"
- ;;
- *)
- #
- # manual configurations - in case ip6_gateway_enable=NO
- # you can configure only single interface,
- # as specification assumes that
- # autoconfigured host has single interface only.
- #
- set `ifconfig -l`
- ipv6_network_interfaces="$1"
- ;;
- esac
+ #
+ # list of interfaces, and prefix for interfaces
+ #
+ ipv6_network_interfaces="`ifconfig -l`"
;;
esac
@@ -211,7 +197,7 @@ network6_pass1() {
'')
for i in ${ipv6_network_interfaces}; do
case $i in
- stf*)
+ lo0|gif*|stf*|faith*)
continue
;;
*)
OpenPOWER on IntegriCloud