summaryrefslogtreecommitdiffstats
path: root/etc/pccard_ether
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2006-09-21 01:44:52 +0000
committerbrooks <brooks@FreeBSD.org>2006-09-21 01:44:52 +0000
commitaa92e52181cdd3681561226d5f939a769107a700 (patch)
treee6c24f6b0461195db15c79c0c87893254451b78e /etc/pccard_ether
parent429d5f787f289dbf16442e16af06cff40348f721 (diff)
downloadFreeBSD-src-aa92e52181cdd3681561226d5f939a769107a700.zip
FreeBSD-src-aa92e52181cdd3681561226d5f939a769107a700.tar.gz
Introduce a new method ipv6if which attemptes to figure out if an
interface is an IPv6 interface. Use this method to decide if we should attempt to configure an interface with an IPv6 address in pccard_ether. The mechanism pccard_ether uses to do this is unsuited to the task because it assumes the list of interfaces it is passed is the full list of IPv6 interfaces and makes decissions based on that. This is at least a step in the right direction and is probably about as much as we can MFC safely. PR: conf/103428 MFC after: 3 days
Diffstat (limited to 'etc/pccard_ether')
-rwxr-xr-xetc/pccard_ether6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/pccard_ether b/etc/pccard_ether
index d8128da..4bf9b52 100755
--- a/etc/pccard_ether
+++ b/etc/pccard_ether
@@ -89,7 +89,11 @@ pccard_ether_start()
fi
# IPv6 setup
- if checkyesno ipv6_enable; then
+ if ipv6if $ifn; then
+ # XXX: network6_interface_setup assumes you're calling
+ # it with ALL the IPv6 interfaces at once and thus isn't
+ # really appropraite for this job, but it's the best we've
+ # got for now.
network6_interface_setup $ifn
fi
}
OpenPOWER on IntegriCloud