Initial changes for libebpfflow support

This commit is contained in:
Luca Deri 2018-10-12 09:01:46 +02:00
parent 3bd6a1a97c
commit e020281263
4 changed files with 40 additions and 8 deletions

View file

@ -342,6 +342,10 @@ void NetworkInterface::init() {
if(TimeseriesRing::isRingEnabled(ntop->getPrefs()))
ts_ring = new TimeseriesRing(this);
}
#ifdef HAVE_EBPF
ebpfEvents = new SPSCQueue();
#endif
}
/* **************************************************** */
@ -736,6 +740,11 @@ void NetworkInterface::deleteDataStructures() {
free(ifname);
ifname = NULL;
}
#ifdef HAVE_EBPF
if(ebpfEvents)
delete ebpfEvents;
#endif
}
/* **************************************************** */