tcss-5.1

131 views
Skip to first unread message

ポンパー

unread,
May 2, 2013, 6:15:48 PM5/2/13
to tc...@googlegroups.com
Hi Kegan
 
 
Thank you for awesome traffic control application.
I just installed it on CentOS 6.x and try to configure
on web based management. But I actually need to
set outbound speed to at 200Mbit/s ~ 500Mbit/s.
 
Is any way I can edit option to be more than default configuration?
 
I am sorry but bothering you. I hope you give me a tip.
 
Thank you
 
 
Scott

Kegan Holtzhausen

unread,
May 3, 2013, 7:51:45 AM5/3/13
to tc...@googlegroups.com
Hi Scott,

Its been a while since there has been activity in this project and forgive its very old ugly code. ;) 

It is quite easy to add more speed options . Im assuming you are using the database version?

You need to change the "layouts/tcss_device_edit.php" file and add the supported speeds to that.  

You need to add: physical_speed, physical_rate, speed and rate options to meet your requirements to that file, then edit and save your interface with the new settings. 

Remember that physical speed and speed are the Full Mbit, and the physical_rate and rate are 1/10th of that for smoothening out the BW. 


Here is a diff patch to add 1GBIT support below. Physical_speed and physical_rate are normally the interface speed ( link speed )
the speed and rate values would be what you want to limit the traffic to on that, so in your case 200Mbit ~ 500Mbit.


--- /home/marzubus/tcss-5.1.66/webinterface/layouts/tcss_device_edit.php 2008-03-05 12:19:29.000000000 +0100
+++ layouts/tcss_device_edit.php 2013-05-03 13:41:32.918725891 +0200
@@ -62,6 +62,7 @@
                                 </TD>
                                 <TD align="left">
                                 </FONT>
+                                        <input type="radio" name="physical_speed" value="1000Mbit" <? if ( $arrRecs['physical_speed'] == "1000Mbit" )  { echo '"checked"'; } ?> >1000Mbit
                                         <input type="radio" name="physical_speed" value="100Mbit" <? if ( $arrRecs['physical_speed'] == "100Mbit" )  { echo '"checked"'; } ?> >100Mbit
                                         <input type="radio" name="physical_speed" value="10Mbit" <? if ( $arrRecs['physical_speed'] == "10Mbit" )  { echo '"checked"'; } ?> >10Mbit
                                 </TD>
@@ -74,6 +75,7 @@
                                 </TD>
                                 <TD align="left">
                                 </FONT>
+                                        <input type="radio" name="physical_rate" value="100Mbit" <? if ( $arrRecs['physical_rate'] == "100Mbit" )  { echo '"checked"'; } ?> >100Mbit
                                         <input type="radio" name="physical_rate" value="10Mbit" <? if ( $arrRecs['physical_rate'] == "10Mbit" )  { echo '"checked"'; } ?> >10Mbit
                                         <input type="radio" name="physical_rate" value="1Mbit" <? if ( $arrRecs['physical_rate'] == "1Mbit" )  { echo '"checked"'; } ?> >1Mbit
                                 </TD>
@@ -86,6 +88,7 @@
                                 </TD>
                                 <TD align="left">
                                 </FONT>
+                                        <input type="radio" name="speed" value="500Mbit" <? if ( $arrRecs['speed'] == "500Mbit" )  { echo '"checked"'; } ?> >500Mbit
                                         <input type="radio" name="speed" value="10Mbit" <? if ( $arrRecs['speed'] == "10Mbit" )  { echo '"checked"'; } ?> >10Mbit
  <input type="radio" name="speed" value="4Mbit" <? if ( $arrRecs['speed'] == "4Mbit" )  { echo '"checked"'; } ?> >4Mbit
  <input type="radio" name="speed" value="2Mbit" <? if ( $arrRecs['speed'] == "2Mbit" )  { echo '"checked"'; } ?> >2Mbit
@@ -101,6 +104,7 @@
                                 </TD>
                                 <TD align="left">
                                 </FONT>
+                                        <input type="radio" name="rate" value="50Mbit" <? if ( $arrRecs['rate'] == "50Mbit" )  { echo '"checked"'; } ?> >50Mbit
                                         <input type="radio" name="rate" value="1Mbit" <? if ( $arrRecs['rate'] == "1Mbit" )  { echo '"checked"'; } ?> >1Mbit
  <input type="radio" name="rate" value="512Kbit" <? if ( $arrRecs['rate'] == "512Kbit" )  { echo '"checked"'; } ?>>512Kbit
                                         <input type="radio" name="rate" value="256Kbit" <? if ( $arrRecs['rate'] == "256Kbit" )  { echo '"checked"'; } ?>>256Kbit


You might need to tweak some other settings, like avpkt and so on. Let me know if it still works after all these years. ;)

Kegan


--
You received this message because you are subscribed to the Google Groups "tcss (traffic control super script)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tcss+uns...@googlegroups.com.
To post to this group, send email to tc...@googlegroups.com.
Visit this group at http://groups.google.com/group/tcss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--


Reply all
Reply to author
Forward
0 new messages