mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-15 00:41:17 +00:00
SNMP protocol version is now set in preferences
This commit is contained in:
parent
94df4af211
commit
d7c8fbeff1
8 changed files with 31 additions and 6 deletions
|
|
@ -4665,7 +4665,8 @@ void NetworkInterface::getnDPIProtocols(lua_State *vm, ndpi_protocol_category_t
|
|||
for(i=0; i<(int)ndpi_struct->ndpi_num_supported_protocols; i++) {
|
||||
char buf[8];
|
||||
|
||||
if(((filter == (u_int8_t)-1) || ndpi_struct->proto_defaults[i].protoCategory == filter) &&
|
||||
if((((u_int8_t)filter == (u_int8_t)-1)
|
||||
|| ndpi_struct->proto_defaults[i].protoCategory == filter) &&
|
||||
(!skip_critical || !Utils::isCriticalNetworkProtocol(i))) {
|
||||
snprintf(buf, sizeof(buf), "%d", i);
|
||||
lua_push_str_table_entry(vm, ndpi_struct->proto_defaults[i].protoName, buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue