diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-02 06:14:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-02 06:14:01 +0000 |
commit | a5acacf6cac9d9e2699affc8d8abb9b66a275b40 (patch) | |
tree | 59fab91e2ee2f53e8f85d93facf19916b6e7ddb8 | |
parent | f0df1e492019975b2520935c95c71a90722f1fcd (diff) | |
download | pfsense-a5acacf6cac9d9e2699affc8d8abb9b66a275b40.zip pfsense-a5acacf6cac9d9e2699affc8d8abb9b66a275b40.tar.gz |
Add snmp to traffic shaper wizard
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.xml | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.xml b/usr/local/www/wizards/traffic_shaper_wizard.xml index 69ecd35..cc25071 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -1244,7 +1244,27 @@ </option> </options> <typehint>RealTime streaming protocol</typehint> - </field> + </field> + <field> + <name>SNMP</name> + <bindstofield>ezshaper->step6->snmp</bindstofield> + <type>select</type> + <options> + <option> + <name>Higher priority</name> + <value>H</value> + </option> + <option> + <name>Default priority</name> + <value></value> + </option> + <option> + <name>Lower priority</name> + <value>L</value> + </option> + </options> + <typehint>RealTime streaming protocol</typehint> + </field> <field> <name>Next</name> <type>submit</type> @@ -1418,12 +1438,17 @@ $othersplist[] = array('SMB1', 'tcp', '445', '445', 'both', $_POST['smb']); $othersplist[] = array('SMB2', 'tcp', '137-139', '137-139', 'both', $_POST['smb']); - if($_POST['rtsp'] != "") { /* realtime streaming protocol */ $othersplist[] = array('RTSP1', 'tcp', '554', '554', 'both', $_POST['rtsp']); } } + if($_POST['snmp'] != "") { + /* Simple network management protocol */ + $othersplist[] = array('SNMP', 'tcp', '161', '161', 'both', $_POST['snmp']); + $othersplist[] = array('SNMP2', 'udp', '161', '161', 'both', $_POST['snmp']); + } + /* XXX: add some more protocols here! */ /* Set up/down protocols as higher weight */ |