summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-03 11:41:15 +0000
committerErmal <eri@pfsense.org>2010-08-03 11:41:15 +0000
commit9fd16ce49ecffa35cb67ebd17d1236a731844629 (patch)
treecc5d543e7e121cb0726b4cc6ddf76b8289e72203 /etc
parentb635c0601c65628807d844911adae3c4ef00d240 (diff)
downloadpfsense-9fd16ce49ecffa35cb67ebd17d1236a731844629.zip
pfsense-9fd16ce49ecffa35cb67ebd17d1236a731844629.tar.gz
Add reference instead of copying also remove bogus comment and code that relies on interfaces named carp which should not happen anymore.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc11
1 files changed, 1 insertions, 10 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 3e2dd7a..843ca36 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2535,18 +2535,10 @@ function convert_real_interface_to_friendly_interface_name($interface = "wan") {
return $vip['interface'];
}
}
- } else if (stristr($interface, "carp")) {
- $index = intval(substr($interface, 4));
- foreach ($config['virtualip']['vip'] as $counter => $vip) {
- if ($vip['mode'] == "carpdev-dhcp" || $vip['mode'] == "carp") {
- if ($index == $counter)
- return $vip['interface'];
- }
- }
}
/* XXX: For speed reasons reference directly the interface array */
- $ifdescrs = $config['interfaces'];
+ $ifdescrs =& $config['interfaces'];
//$ifdescrs = get_configured_interface_list(false, true);
foreach ($ifdescrs as $if => $ifname) {
@@ -2556,7 +2548,6 @@ function convert_real_interface_to_friendly_interface_name($interface = "wan") {
if (get_real_interface($if) == $interface)
return $if;
- /* XXX: ermal - The 3 lines below are totally bogus code. */
$int = interface_translate_type_to_real($if);
if ($int == $interface)
return $ifname;
OpenPOWER on IntegriCloud