Added initial work towards a new historical interface. In the Interfaces->name->Historical Actitivity it is now possible to see top flows when -F "mysql;...." is used

This commit is contained in:
Luca Deri 2015-08-16 15:00:40 +02:00
parent 3b72506ab0
commit e59d699837
10 changed files with 281 additions and 19 deletions

View file

@ -110,8 +110,8 @@ bool MySQLDB::dumpV4Flow(time_t when, Flow *f, char *json) {
ntop->getPrefs()->get_mysql_tablename(), iface->get_id(),
f->get_vlan_id(),
f->get_detected_protocol().protocol,
f->get_cli_host()->get_ip()->get_ipv4(), f->get_cli_port(),
f->get_srv_host()->get_ip()->get_ipv4(), f->get_srv_port(),
htonl(f->get_cli_host()->get_ip()->get_ipv4()), f->get_cli_port(),
htonl(f->get_srv_host()->get_ip()->get_ipv4()), f->get_srv_port(),
f->get_protocol(), (unsigned int)f->get_bytes(), (unsigned int)f->get_packets(),
(unsigned int)f->get_first_seen(), (unsigned int)f->get_last_seen(),
json ? json : "");