summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards/traffic_shaper_wizard.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-04-09 22:42:41 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-04-09 22:42:41 +0000
commit7ae3d3ed26abbca3bd0f9e28758f0b0bac90689b (patch)
tree29e3eb864765a0fe084b98b3a36479a8a295492f /usr/local/www/wizards/traffic_shaper_wizard.inc
parent5d50064eeef915da4ffac84453ea1a7dc090949e (diff)
downloadpfsense-7ae3d3ed26abbca3bd0f9e28758f0b0bac90689b.zip
pfsense-7ae3d3ed26abbca3bd0f9e28758f0b0bac90689b.tar.gz
MFC 11285
Other Applications will now be in OtherH, OtherL, or default depending on setting. This is important if you don't want all your apps to hit the P2PCatchall rule if selected.
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard.inc')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc27
1 files changed, 23 insertions, 4 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index 856488a..aa8d83c 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -929,8 +929,18 @@ function step6_stepsubmitphpaction() {
$config['shaper']['itemsshaped']++;
if ($srcdest == 'source') {
$destsrc = 'destination';
- $rule['inqueue'] = 'qOthersDown' . $otherclient[5]; /* posted value H or L */
- $rule['outqueue'] = 'qOthersUp' . $otherclient[5]; /* posted value H or L */
+ switch ($otherclient[5]) {
+ case "H":
+ case "L":
+ $rule['inqueue'] = 'qOthersDown' . $otherclient[5]; /* posted value H or L */
+ $rule['outqueue'] = 'qOthersUp' . $otherclient[5]; /* posted value H or L */
+ break;
+ case "D":
+ $rule['inqueue'] = "q${downint}def"; /* posted value H or L */
+ $rule['outqueue'] = "q${upint}def"; /* posted value H or L */
+ break;
+ }
+
$rule['in-interface'] = $downint;
$rule['out-interface'] = $upint;
$rule['source']['network'] = $downint;
@@ -938,8 +948,17 @@ function step6_stepsubmitphpaction() {
$rule['descr'] = "m_Other {$otherclient[0]} outbound";
} else {
$destsrc = 'source';
- $rule['inqueue'] = 'qOthersUp' . $otherclient[5]; /* posted value H or L */
- $rule['outqueue'] = 'qOthersDown' . $otherclient[5]; /* posted value H or L */
+ switch ($otherclient[5]) {
+ case "H":
+ case "L":
+ $rule['inqueue'] = 'qOthersUp' . $otherclient[5]; /* posted value H or L */
+ $rule['outqueue'] = 'qOthersDown' . $otherclient[5]; /* posted value H or L */
+ break;
+ case "D":
+ $rule['inqueue'] = "q${upint}def"; /* posted value H or L */
+ $rule['outqueue'] = "q${downint}def"; /* posted value H or L */
+ break;
+ }
$rule['in-interface'] = $upint;
$rule['out-interface'] = $downint;
$rule['source']['any'] = TRUE;
OpenPOWER on IntegriCloud