Added Lua batch SNMP API

This commit is contained in:
Luca Deri 2017-08-09 10:26:25 +02:00
parent 7b15221414
commit af74f3b041
6 changed files with 137 additions and 51 deletions

View file

@ -72,6 +72,7 @@ class NetworkInterface {
FlowHashingEnum flowHashingMode;
FlowHashing *flowHashing;
MDNS *mdns;
SNMP *snmp;
string ip_addresses;
int id;
bool bridge_interface;
@ -556,6 +557,7 @@ class NetworkInterface {
inline void luaTopPoolsProtos(lua_State *vm) { frequentProtocols->luaTopPoolsProtocols(vm); }
void topMacsAdd(Mac *mac, ndpi_protocol *proto, u_int32_t bytes);
inline void luaTopMacsProtos(lua_State *vm) { frequentMacs->luaTopMacsProtocols(vm); }
inline SNMP* getSNMP() { return(snmp); }
};
#endif /* _NETWORK_INTERFACE_H_ */