Initial work towards OS discovery

This commit is contained in:
Luca Deri 2017-09-19 00:33:15 +02:00
parent 3275f236d5
commit fdb7a8ab41
11 changed files with 131 additions and 18 deletions

View file

@ -541,6 +541,7 @@ class NetworkInterface {
inline virtual bool isView() { return(false); };
bool getMacInfo(lua_State* vm, char *mac, u_int16_t vlan_id);
bool setMacDeviceType(char *strmac, u_int16_t vlanId, DeviceType dtype, bool alwaysOverwrite);
bool setMacOperatingSystem(lua_State* vm, char *mac, OperatingSystem os);
bool getASInfo(lua_State* vm, u_int32_t asn);
bool getVLANInfo(lua_State* vm, u_int16_t vlan_id);
inline void incNumHosts(bool local) { if(local) numLocalHosts++; numHosts++; };