summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-05-25 21:20:20 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-05-25 21:20:20 +0000
commit224ed6e22283c50ab1be0ab0be04d81316a88af9 (patch)
tree308aa3837aacc6efdd0b78df9c769e5d250b58dc /etc/inc
parent3f4f675e8dbe0b57b434660c397f56c5128a5343 (diff)
downloadpfsense-224ed6e22283c50ab1be0ab0be04d81316a88af9.zip
pfsense-224ed6e22283c50ab1be0ab0be04d81316a88af9.tar.gz
Convert friendly interface name to real interface
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index e8692d1..a1ef042 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -307,7 +307,8 @@ function interfaces_carp_configure() {
}
$carpdev = "";
if($carp['interface'] <> "AUTO" and $carp['interface'] <> "") {
- $carpdev = " carpdev {$carp['interface']} ";
+ $ci = filter_opt_interface_to_real($carp['interface']);
+ $carpdev = " carpdev {$ci} ";
}
mwexec("/sbin/ifconfig carp" . $carp_instances_counter . " " . $carp['ipaddress'] . "/" . $carp['netmask'] . " broadcast " . $broadcast_address . " vhid " . $carp['vhid'] . "{$carpdev} advskew " . $carp['advskew'] . $password);
$carp_instances_counter++;
OpenPOWER on IntegriCloud