summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-11-15 17:04:42 -0500
committerChris Buechler <cmb@pfsense.org>2009-11-15 17:06:19 -0500
commit123f030c6be9859f3f8790849178522f29789b95 (patch)
tree482470b006a65d9338df3641bb398d3a633a8ec3 /etc
parent08991766fc1742c9058e3c0ff3824b1ebfb513a6 (diff)
downloadpfsense-123f030c6be9859f3f8790849178522f29789b95.zip
pfsense-123f030c6be9859f3f8790849178522f29789b95.tar.gz
Fix proxy ARP VIP addition (was calling old function)
rename function from interfaces_proxyarp... to interface_ to be consistent with the functions for carp, carpdev, and ipalias. still a problem with proxy ARP, removing VIP doesn't kill off choparp (will open ticket)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc25
-rw-r--r--etc/inc/util.inc2
2 files changed, 9 insertions, 18 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 84dc1d1..08afbb0 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -777,10 +777,10 @@ function interface_reconfigure($interface = "wan") {
}
function interface_vip_bring_down(&$vip) {
-
+
switch ($vip['mode']) {
case "proxyarp":
- interfaces_proxyarp_configure();
+ interface_proxyarp_configure();
break;
case "ipalias":
mwexec("/sbin/ifconfig " . get_real_interface($vip['interface']) . " delete {$vip['subnet']}");
@@ -1040,13 +1040,13 @@ function interfaces_carp_setup() {
}
}
-function interfaces_proxyarp_configure() {
+function interface_proxyarp_configure() {
global $config, $g;
if(isset($config['system']['developerspew'])) {
$mt = microtime();
- echo "interfaces_proxyarp_configure() being called $mt\n";
+ echo "interface_proxyarp_configure() being called $mt\n";
}
-
+
/* kill any running choparp */
killbyname("choparp");
@@ -1094,7 +1094,7 @@ function interfaces_vips_configure() {
global $g, $config;
if(isset($config['system']['developerspew'])) {
$mt = microtime();
- echo "interfaces_ipalias_configure() being called $mt\n";
+ echo "interfaces_vips_configure() being called $mt\n";
}
$paa = array();
if(is_array($config['virtualip']['vip'])) {
@@ -1102,7 +1102,7 @@ function interfaces_vips_configure() {
foreach ($config['virtualip']['vip'] as $vip) {
switch ($vip['mode']) {
case "proxyarp":
- /* nothing it is handled on interfaces_proxyarp_configure() */
+ /* nothing it is handled on interface_proxyarp_configure() */
break;
case "ipalias":
interface_ipalias_configure(&$vip);
@@ -1120,7 +1120,7 @@ function interfaces_vips_configure() {
}
}
- interfaces_proxyarp_configure();
+ interface_proxyarp_configure();
}
}
@@ -1161,15 +1161,6 @@ function interface_reload_carps($cif) {
}
}
-// Returns the first available vhid interface
-function find_next_available_vip() {
- for($x=0; $x<9999; $x++) {
- if(!does_interface_exist("vip{$x}"))
- return "vip{$x}";
- }
- return false;
-}
-
function interface_carp_configure(&$vip) {
global $config, $g;
if(isset($config['system']['developerspew'])) {
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 02c6690..3706279 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -82,7 +82,7 @@ function sigkillbyname($procname, $sig) {
/* kill a process by name */
function killbyname($procname) {
- if(isvalidproc($procname))
+ if(isvalidproc($procname))
mwexec("/usr/bin/killall " . escapeshellarg($procname));
}
OpenPOWER on IntegriCloud