From a5acacf6cac9d9e2699affc8d8abb9b66a275b40 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 2 Jul 2005 06:14:01 +0000 Subject: [PATCH] Add snmp to traffic shaper wizard --- .../www/wizards/traffic_shaper_wizard.xml | 29 +++++++++++++++++-- 1 file 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 69ecd3570a..cc25071264 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.xml +++ b/usr/local/www/wizards/traffic_shaper_wizard.xml @@ -1244,7 +1244,27 @@ RealTime streaming protocol - + + + SNMP + ezshaper->step6->snmp + select + + + + + + RealTime streaming protocol + Next submit @@ -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 */