diff --git a/src/rust/lqos_node_manager/static/ip_dump.html b/src/rust/lqos_node_manager/static/ip_dump.html
index 14fed0fe..56e51f37 100644
--- a/src/rust/lqos_node_manager/static/ip_dump.html
+++ b/src/rust/lqos_node_manager/static/ip_dump.html
@@ -80,8 +80,6 @@
var capacity = [];
var activeFilter = null;
var activeSet = null;
- var activeChart = 0;
- var activePage = 0;
function filter(newFilter) {
activeFilter = newFilter;
@@ -95,12 +93,6 @@
viewPage(0);
}
- function setChart(n) {
- activeChart = n;
- paginator(activePage);
- viewPage(activePage);
- }
-
function proto(n) {
switch (n) {
case 6: return "TCP"
@@ -165,7 +157,7 @@ if (hdr->cwr) flags |= 128;
paginator += " ";
}
}
- paginator += " | ";
+ paginator += "
";
// Offer flow filtering
paginator += "Filter Flows: ";
@@ -182,28 +174,7 @@ if (hdr->cwr) flags |= 128;
paginator += "";
}
});
- paginator += " | ";
-
- // Offer graph choices
- paginator += "Graph: ";
- paginator += "";
- paginator += "";
$("#pages").html(paginator);
}
@@ -343,7 +314,6 @@ if (hdr->cwr) flags |= 128;
data.forEach(packet => packet.timestamp -= min_ts);
// Divide the packets into flows and append the flow_id
- let flowCounter = 0;
data.forEach(packet => {
let flow_id = proto(packet.ip_protocol) + " " + packet.src + ":" + packet.src_port + " <-> " + packet.dst + ":" + packet.dst_port;
let reverse_flow_id = proto(packet.ip_protocol) + " " + packet.dst + ":" + packet.dst_port + " <-> " + packet.src + ":" + packet.src_port;
@@ -352,11 +322,11 @@ if (hdr->cwr) flags |= 128;
} else if (flows.hasOwnProperty(reverse_flow_id)) {
packet.flow_id = reverse_flow_id;
} else {
- flows[flow_id] = { flowCounter };
+ flows[flow_id] = {};
packet.flow_id = flow_id;
- flowCounter++;
}
});
+ console.log(flows);
packets = data;
activeSet = packets;