mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Initial system interface data delete
This commit is contained in:
parent
8dfb66fe82
commit
0748ef191d
5 changed files with 70 additions and 25 deletions
|
|
@ -65,6 +65,10 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function getInterfaceName(interface_id, windows_skip_description)
|
||||
if(interface_id == getSystemInterfaceId()) then
|
||||
return(getSystemInterfaceName())
|
||||
end
|
||||
|
||||
local ifnames = interface.getIfNames()
|
||||
local iface = ifnames[tostring(interface_id)]
|
||||
|
||||
|
|
@ -88,6 +92,10 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function getInterfaceId(interface_name)
|
||||
if(interface_name == getSystemInterfaceName()) then
|
||||
return(getSystemInterfaceId())
|
||||
end
|
||||
|
||||
local ifnames = interface.getIfNames()
|
||||
|
||||
for if_id, if_name in pairs(ifnames) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue