Initial system interface data delete

This commit is contained in:
emanuele-f 2019-07-04 11:09:33 +02:00
parent 8dfb66fe82
commit 0748ef191d
5 changed files with 70 additions and 25 deletions

View file

@ -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