summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-23 23:25:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-23 23:25:16 +0000
commit4a157de53fc9cba546c7149d60b1fc85734704c9 (patch)
treeb6c5e629d1d702957cd0c7c779506af0bff86f90 /etc
parentaac0e00c65f96eefa923476aeca278bc3fb2fa5b (diff)
downloadpfsense-4a157de53fc9cba546c7149d60b1fc85734704c9.zip
pfsense-4a157de53fc9cba546c7149d60b1fc85734704c9.tar.gz
Expand "Announce Dynamic local route" to textarea
Ticket #1071
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 7a2f431..4dada53 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -64,7 +64,7 @@ function find_number_of_needed_carp_interfaces() {
$carp_counter=0;
foreach($config['virtualip']['vip'] as $vip) {
if($vip['mode'] == "carp")
- $carp_counter++;
+ $carp_counter++;
}
return $carp_counter;
}
@@ -84,8 +84,10 @@ function reset_carp() {
for($x=0; $x<$carp_counter; $x++) {
mwexec("/sbin/ifconfig carp{$x} down");
mwexec("/sbin/ifconfig carp{$x} delete");
+ log_error("CARP: $needed_carp_interfaces < $carp_counter");
if($needed_carp_interfaces < $carp_counter) {
$needed_carp_interfaces--;
+ log_error("Destroying carp interface.");
mwexec("/sbin/ifconfig carp{$x} destroy");
}
}
OpenPOWER on IntegriCloud