summaryrefslogtreecommitdiffstats
path: root/etc/inc/vslb.inc
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-04-05 12:05:27 -0400
committerDarren Embry <dse@webonastick.com>2012-04-05 13:10:40 -0400
commit9859b2b5538192e64e650fc84e2a12ba4491d47c (patch)
tree6d324b0888afa5f3803f82754649a2aeaa8e2eb7 /etc/inc/vslb.inc
parent939b2d75480077bdfccd400df5acca4de86a0c7d (diff)
downloadpfsense-9859b2b5538192e64e650fc84e2a12ba4491d47c.zip
pfsense-9859b2b5538192e64e650fc84e2a12ba4491d47c.tar.gz
minor changes
- aggh hard tab in a string - aggh brackets in case clauses
Diffstat (limited to 'etc/inc/vslb.inc')
-rw-r--r--etc/inc/vslb.inc39
1 files changed, 14 insertions, 25 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc
index be30e6d..1fd9f77 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -131,31 +131,25 @@ function echo_lbaction($action) {
$ret = "";
$ret .= "{$actions_a[$action]['direction']} {$actions_a[$action]['type']} {$actions_a[$action]['action']}";
switch($actions_a[$action]['action']) {
- case 'append': {
+ case 'append':
$ret .= " \"{$actions_a[$action]['options']['value']}\" to \"{$actions_a[$action]['options']['akey']}\"";
break;
- }
- case 'change': {
+ case 'change':
$ret .= " \"{$actions_a[$action]['options']['akey']}\" to \"{$actions_a[$action]['options']['value']}\"";
break;
- }
- case 'expect': {
+ case 'expect':
$ret .= " \"{$actions_a[$action]['options']['value']}\" from \"{$actions_a[$action]['options']['akey']}\"";
break;
- }
- case 'filter': {
+ case 'filter':
$ret .= " \"{$actions_a[$action]['options']['value']}\" from \"{$actions_a[$action]['options']['akey']}\"";
break;
- }
- case 'hash': {
+ case 'hash':
$ret .= " \"{$actions_a[$action]['options']['akey']}\"";
break;
- }
- case 'log': {
+ case 'log':
$ret .= " \"{$actions_a[$action]['options']['akey']}\"";
break;
}
- }
return $ret;
}
@@ -171,27 +165,22 @@ function relayd_configure($kill_first=false) {
foreach ((array)$config['load_balancer']['monitor_type'] as $type) {
switch($type['type']) {
- case 'icmp': {
+ case 'icmp':
$mon = new ICMPMonitor($type['options']);
break;
- }
- case 'tcp': {
+ case 'tcp':
$mon = new TCPMonitor($type['options']);
break;
- }
- case 'http': {
+ case 'http':
$mon = new HTTPMonitor($type['options']);
break;
- }
- case 'https': {
+ case 'https':
$mon = new HTTPSMonitor($type['options']);
break;
- }
- case 'send': {
+ case 'send':
$mon = new SendMonitor($type['options']);
break;
}
- }
if($mon) {
$check_a[$type['name']] = $mon->p();
}
@@ -255,7 +244,7 @@ function relayd_configure($kill_first=false) {
// }
$conf .= "dns protocol \"dnsproto\" {\n";
- $conf .= " tcp { nodelay, sack, socket buffer 1024, backlog 1000 }\n";
+ $conf .= "\ttcp { nodelay, sack, socket buffer 1024, backlog 1000 }\n";
$conf .= "}\n";
if(is_array($vs_a)) {
@@ -408,12 +397,12 @@ function get_lb_summary() {
switch (trim($t[1])) {
case "table":
$curpool=trim($t[2]);
- break;
+ break;
case "host":
$curhost=trim($t[2]);
$relay_hosts[$curpool][$curhost]['avail']=trim($t[3]);
$relay_hosts[$curpool][$curhost]['state']=trim($t[4]);
- break;
+ break;
}
}
return $relay_hosts;
OpenPOWER on IntegriCloud