mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-11 02:26:43 +00:00
Implements flows filter by client/server ASN
This commit is contained in:
parent
420dbe8020
commit
4e4020a480
13 changed files with 150 additions and 49 deletions
|
|
@ -76,16 +76,16 @@ void AutonomousSystem::lua(lua_State* vm, DetailsLevel details_level, bool asLis
|
|||
if(details_level >= details_high) {
|
||||
((GenericTrafficElement*)this)->lua(vm, true);
|
||||
|
||||
lua_push_int_table_entry(vm, "seen.first", first_seen);
|
||||
lua_push_int_table_entry(vm, "seen.last", last_seen);
|
||||
lua_push_int_table_entry(vm, "duration", get_duration());
|
||||
|
||||
lua_push_int_table_entry(vm, "num_hosts", getNumHosts());
|
||||
|
||||
if(details_level >= details_higher)
|
||||
if(ndpiStats) ndpiStats->lua(iface, vm);
|
||||
}
|
||||
|
||||
lua_push_int_table_entry(vm, "seen.first", first_seen);
|
||||
lua_push_int_table_entry(vm, "seen.last", last_seen);
|
||||
lua_push_int_table_entry(vm, "duration", get_duration());
|
||||
|
||||
lua_push_int_table_entry(vm, "num_hosts", getNumHosts());
|
||||
|
||||
if(asListElement) {
|
||||
lua_pushnumber(vm, asn);
|
||||
lua_insert(vm, -2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue