mirror of
https://github.com/ntop/ntopng.git
synced 2026-06-02 07:03:13 +00:00
Fixes disaggregated interfaces initialization
Possible fix for #2745 and #2743
This commit is contained in:
parent
7efc8dfcae
commit
afe2e5111e
2 changed files with 4 additions and 5 deletions
|
|
@ -1055,10 +1055,11 @@ NetworkInterface* NetworkInterface::getSubInterface(u_int32_t criteria, bool par
|
|||
h->iface = new NetworkInterface(buf, vIface_type);
|
||||
|
||||
if(h->iface) {
|
||||
if (ntop->registerInterface(h->iface))
|
||||
if(ntop->registerInterface(h->iface))
|
||||
ntop->initInterface(h->iface);
|
||||
h->iface->allocateStructures();
|
||||
h->iface->setDynamicInterface();
|
||||
h->iface->startPacketPolling(); /* Won't actually start a thread, just mark this interface as running */
|
||||
HASH_ADD_INT(flowHashing, criteria, h);
|
||||
numVirtualInterfaces++;
|
||||
ntop->getRedis()->set(CONST_STR_RELOAD_LISTS, (const char * const)"1");
|
||||
|
|
@ -1084,13 +1085,11 @@ NetworkInterface* NetworkInterface::getSubInterface(u_int32_t criteria, bool par
|
|||
void NetworkInterface::processFlow(ParsedFlow *zflow, bool zmq_flow) {
|
||||
bool src2dst_direction, new_flow;
|
||||
Flow *flow;
|
||||
ndpi_protocol p;
|
||||
ndpi_protocol p = Flow::ndpiUnknownProtocol;
|
||||
time_t now = time(NULL);
|
||||
Mac *srcMac = NULL, *dstMac = NULL;
|
||||
IpAddress srcIP, dstIP;
|
||||
|
||||
memset(&p, 0, sizeof(p));
|
||||
|
||||
if(zmq_flow) {
|
||||
/* In ZMQ flows we need to fix the clock drift */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue