summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-01-14 22:07:26 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-01-14 22:07:26 +0000
commit867b013e7dfeb4713a57d07cbbf7b146fe88aa6a (patch)
tree7652dbc27670d73e97cdb268ee4159db9ab082c1
parente589191078ac4a22e2f3e7ecd2d6640faad75911 (diff)
downloadpfsense-867b013e7dfeb4713a57d07cbbf7b146fe88aa6a.zip
pfsense-867b013e7dfeb4713a57d07cbbf7b146fe88aa6a.tar.gz
Add Xbox360 support in the gaming section
See http://support.microsoft.com/kb/908874
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc14
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.xml8
2 files changed, 21 insertions, 1 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index 4bfb99a..9d8b067 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -768,6 +768,20 @@ function step6_stepsubmitphpaction() {
$gamesplist[] = array('GunZOnline', 'udp', '7700', '7700', 'both');
}
+ if($_POST['xbox360'] != "") {
+ /* XBox360 */
+ $gamesplist[] = array('xbox360-1', 'udp', '88', '88', 'both');
+ $gamesplist[] = array('xbox360-2', 'udp', '3074', '3074', 'both');
+ $gamesplist[] = array('xbox360-3', 'tcp', '3074', '3074', 'both');
+ }
+
+ if($_POST['xbox360'] != "") {
+ /* XBox360 */
+ $gamesplist[] = array('xbox360-1', 'udp', '88', '88', 'both');
+ $gamesplist[] = array('xbox360-2', 'udp', '3074', '3074', 'both');
+ $gamesplist[] = array('xbox360-3', 'tcp', '3074', '3074', 'both');
+ }
+
/* XXX: add some more games before this line!! */
/* Set up/down games as higher weight */
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml
index 43418f2..1c3e6cc 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.xml
+++ b/usr/local/www/wizards/traffic_shaper_wizard.xml
@@ -513,7 +513,7 @@
<type>checkbox</type>
<typehint>Prioritize network gaming traffic</typehint>
<description>This will raise the priority of gaming traffic to higher than most traffic.</description>
- <enablefields>BattleNET,Battlefield2,CallOfDuty,Counterstrike,DeltaForce,DOOM3,EmpireEarth,Everquest,Everquest2,FarCry,GunZOnline,HalfLife,HalfLife2,Halo2,Lineage2,PlanetSide,QuakeIII,TigerWoods2004PS2,UnrealTournament,WolfensteinEnemyTerritory,WorldOfWarcraft</enablefields>
+ <enablefields>BattleNET,Battlefield2,CallOfDuty,Counterstrike,DeltaForce,DOOM3,EmpireEarth,Everquest,Everquest2,FarCry,GunZOnline,HalfLife,HalfLife2,Halo2,Lineage2,PlanetSide,QuakeIII,TigerWoods2004PS2,UnrealTournament,WolfensteinEnemyTerritory,WorldOfWarcraft,XBox360</enablefields>
<donotdisable>true</donotdisable>
<bindstofield>ezshaper->step6->enable</bindstofield>
</field>
@@ -651,6 +651,12 @@
<typehint>World of Warcraft</typehint>
<bindstofield>ezshaper->step6->wow</bindstofield>
</field>
+ <field>
+ <name>Xbox360</name>
+ <type>checkbox</type>
+ <typehint>XBox 360</typehint>
+ <bindstofield>ezshaper->step6->xbox360</bindstofield>
+ </field>
<field>
<name>Next</name>
<type>submit</type>
OpenPOWER on IntegriCloud