diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-01-14 22:07:26 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-01-14 22:07:26 +0000 |
commit | 867b013e7dfeb4713a57d07cbbf7b146fe88aa6a (patch) | |
tree | 7652dbc27670d73e97cdb268ee4159db9ab082c1 | |
parent | e589191078ac4a22e2f3e7ecd2d6640faad75911 (diff) | |
download | pfsense-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.inc | 14 | ||||
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.xml | 8 |
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> |