summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-10-27 17:06:26 +0000
committerhrs <hrs@FreeBSD.org>2012-10-27 17:06:26 +0000
commit94b3ca6d0016d7bad92eb4697f2b44d9b8f55f09 (patch)
treeb98d33f1177c69648165a687e99f2e52eef24f78 /etc/network.subr
parentc04c652a9e78501a1cfb0f4e8484084cc91f26ec (diff)
downloadFreeBSD-src-94b3ca6d0016d7bad92eb4697f2b44d9b8f55f09.zip
FreeBSD-src-94b3ca6d0016d7bad92eb4697f2b44d9b8f55f09.tar.gz
Fix an issue when ipv6_enable=YES && ipv6_gateway_enable=YES which could
prevent rtadvd(8) from working as intended. Spotted by: brian Discussed with: brian
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 6d0de93..f7a7241 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -504,7 +504,11 @@ ipv6_autoconfif()
# backward compatibility: $ipv6_enable
case $ipv6_enable in
[Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
- return 0
+ if checkyesno ipv6_gateway_enable; then
+ return 1
+ else
+ return 0
+ fi
;;
esac
OpenPOWER on IntegriCloud