summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-02-03 17:29:56 +0000
committerErmal Luçi <eri@pfsense.org>2008-02-03 17:29:56 +0000
commit1c55cde41f12150d5b82e17129bda0cfeef45fcf (patch)
treee26541e876e18ef827328a8c4e4228c3ada9d80e
parentb63cb05e7c64209d6188c45080cac8a091966b32 (diff)
downloadpfsense-1c55cde41f12150d5b82e17129bda0cfeef45fcf.zip
pfsense-1c55cde41f12150d5b82e17129bda0cfeef45fcf.tar.gz
* Add Slingbox to the raise/lower protocols screen.(requested by Scott)
* Fix a bug with the creation of rules for this section of the wizard. * Also set the qACK where it makes sense.
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc11
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index e22e394..ae16c75 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -872,6 +872,9 @@ $othersplist = array();
$othersplist['hbci'] = array();
/* HBCI */
$othersplist['hbci'][] = array('HBCI', 'tcp', '3000', '3000', 'both');
+ $othersplist['slingbox'] = array();
+ $othersplist['slingbox'][] = array('Slingbox', 'tcp', '5001', '5001', 'both');
+ $othersplist['slingbox'][] = array('Slingbox', 'udp', '5001', '5001', 'both');
/*
* Wipe previous config.
@@ -1738,19 +1741,21 @@ $othersplist = array();
switch ($val) {
case "H":
$rule['defaultqueue'] = 'qOthersHigh'; /* posted value H or L */
- if ($val[1] == "tcp")
+ if ($otherclient[1] == "tcp")
$rule['ackqueue'] = 'qACK';
$loop = 0;
break;
case "L":
- $rule['defaultqueue'] = 'qOthersLow'; /* posted value H or L */
+ $rule['defaultqueue'] = 'qOthersLow'; /* posted value H or L */
+ if ($otherclient[1] == "tcp")
+ $rule['ackqueue'] = 'qACK';
$loop = 0;
break;
case "D":
if ($p2pcatchall) {
$loop = 0;
$rule['defaultqueue'] = 'qOthersDefault';
- if ($val[1] == "tcp")
+ if ($otherclient[1] == "tcp")
$rule['ackqueue'] = 'qACK';
} else
$loop = 1; /* It automitaclly goes to default queue */
OpenPOWER on IntegriCloud