summaryrefslogtreecommitdiffstats
path: root/etc/network.subr
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-08-27 15:24:26 +0000
committerdougb <dougb@FreeBSD.org>2009-08-27 15:24:26 +0000
commit4d9083590fff80b5ac8fbf72d7a2b7ffee9fd744 (patch)
treefc1435c55e1538cffd01154cc061f19a04057826 /etc/network.subr
parent65b3a280e7d1751e0d7c0e593abdd58176be8681 (diff)
downloadFreeBSD-src-4d9083590fff80b5ac8fbf72d7a2b7ffee9fd744.zip
FreeBSD-src-4d9083590fff80b5ac8fbf72d7a2b7ffee9fd744.tar.gz
In the loop through the list of interfaces in network6_interface_setup()
rtsol_interface gets reset to "yes" each time through the loop, but rtsol_available does not. If a user has lo0 first in their list of interfaces rtsol_available will get set to "no" the first time through the loop and subsequent interfaces will not get rtsol'ed when they should. Therefore change the conditional for the is_wired() test to _interface. Noticed by: Dimitry Andric <dimitry@andric.com>
Diffstat (limited to 'etc/network.subr')
-rw-r--r--etc/network.subr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/network.subr b/etc/network.subr
index 01f836e..e794fab 100644
--- a/etc/network.subr
+++ b/etc/network.subr
@@ -879,8 +879,8 @@ network6_interface_setup()
# Wireless NIC cards are virtualized through the wlan interface
if ! is_wired_interface ${i}; then
case "${i}" in
- wlan*) rtsol_available=yes ;;
- *) rtsol_available=no ;;
+ wlan*) rtsol_interface=yes ;;
+ *) rtsol_interface=no ;;
esac
fi
OpenPOWER on IntegriCloud