From 86e09c391a507f920275db42b15403936744eb6f Mon Sep 17 00:00:00 2001 From: Augusto Bott Date: Sat, 3 Dec 2011 10:25:20 -0200 Subject: [PATCH] IPTraffic conn/BW ratios graphs * connections and bandwidth distribution per IP address * based on qos-graphs.asp * limited to 11 addresses --- release/src/router/www/ipt-details.asp | 8 + release/src/router/www/ipt-graph.svg | 212 +++++++++++++++++ release/src/router/www/ipt-graphs.asp | 408 +++++++++++++++++++++++++++++++++ release/src/router/www/tomato.js | 1 + 4 files changed, 629 insertions(+) create mode 100644 release/src/router/www/ipt-graph.svg create mode 100644 release/src/router/www/ipt-graphs.asp diff --git a/release/src/router/www/ipt-details.asp b/release/src/router/www/ipt-details.asp index f501fdf748..bf2c68c3ef 100644 --- a/release/src/router/www/ipt-details.asp +++ b/release/src/router/www/ipt-details.asp @@ -315,6 +315,14 @@ grid.setup = function() { } function init() { + + if ((c = '<% cgi_get("ipt_filterip"); %>') != '') { + if (c.length>6) { + E('_f_filter_ip').value = c; + filterip = c.split(','); + } + } + if ((c = cookie.get('ipt_filterip')) != null) { cookie.set('ipt_filterip', '', 0); if (c.length>6) { diff --git a/release/src/router/www/ipt-graph.svg b/release/src/router/www/ipt-graph.svg new file mode 100644 index 0000000000..68166dde0d --- /dev/null +++ b/release/src/router/www/ipt-graph.svg @@ -0,0 +1,212 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Unclassified 100.00% (9999) + + diff --git a/release/src/router/www/ipt-graphs.asp b/release/src/router/www/ipt-graphs.asp new file mode 100644 index 0000000000..798088cf48 --- /dev/null +++ b/release/src/router/www/ipt-graphs.asp @@ -0,0 +1,408 @@ + + + + + + +[<% ident(); %>] IP Traffic: View Graphs + +<% css(); %> + + + + + + + + + + +
+ + + + + +
+
<% ident(); %>
+ + + +
Connections Distribution (TCP/UDP)
+
+ +
+ + + +
 Total100%
+
+ +
+
+ + + +
Bandwidth Distribution (Inbound)
+
+ +
+ + + + +
 kbit/sKB/s 
 Total100%
+
+ +
+
+ + + +
Bandwidth Distribution (Outbound)
+
+ +
+ + + + +
 kbit/sKB/s 
 Total100%
+
+ +
+
+ + + + + + + +
+
+ + diff --git a/release/src/router/www/tomato.js b/release/src/router/www/tomato.js index 34a2f80743..8c73ed1cf5 100644 --- a/release/src/router/www/tomato.js +++ b/release/src/router/www/tomato.js @@ -2354,6 +2354,7 @@ REMOVE-END */ ['IP Traffic', 'ipt', 0, [ ['Real-Time', 'realtime.asp'], ['Last 24 Hours', '24.asp'], + ['View Graphs', 'graphs.asp'], ['Transfer Rates', 'details.asp'], ['Daily', 'daily.asp'], ['Monthly', 'monthly.asp'] ] ], -- 2.11.4.GIT