mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-13 23:13:52 +00:00
Initial changes for libebpfflow support
This commit is contained in:
parent
3bd6a1a97c
commit
e020281263
4 changed files with 40 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
/* **************************************************** */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue