mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-27 16:54:56 +00:00
Fix for dynamic interface creation
This commit is contained in:
parent
b0814d9487
commit
2cc9cc3383
1 changed files with 2 additions and 2 deletions
|
|
@ -361,7 +361,7 @@ void NetworkInterface::checkAggregationMode() {
|
|||
char rsp[32];
|
||||
|
||||
if(!strcmp(get_type(), CONST_INTERFACE_TYPE_ZMQ)) {
|
||||
if(ntop->getRedis()->get((char*)CONST_RUNTIME_PREFS_IFACE_FLOW_COLLECTION, rsp, sizeof(rsp)) == 0) {
|
||||
if(ntop->getPrefs()->hashGet((char*)CONST_RUNTIME_PREFS_IFACE_FLOW_COLLECTION, rsp, sizeof(rsp)) > 0) {
|
||||
if(rsp[0] != '\0') {
|
||||
if(!strcmp(rsp, "probe_ip")) flowHashingMode = flowhashing_probe_ip;
|
||||
else if(!strcmp(rsp, "ingress_iface_idx")) flowHashingMode = flowhashing_ingress_iface_idx;
|
||||
|
|
@ -370,7 +370,7 @@ void NetworkInterface::checkAggregationMode() {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
if((ntop->getRedis()->get((char*)CONST_RUNTIME_PREFS_IFACE_VLAN_CREATION, rsp, sizeof(rsp)) == 0)
|
||||
if((ntop->getPrefs()->hashGet((char*)CONST_RUNTIME_PREFS_IFACE_VLAN_CREATION, rsp, sizeof(rsp)) > 0)
|
||||
&& (!strncmp(rsp, "1", 1)))
|
||||
flowHashingMode = flowhashing_vlan;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue