Skip to content

Commit

Permalink
nEdge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 14, 2024
1 parent 56ed96e commit e9ef30e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,12 @@ extern "C" {
ntop->getTrace()->traceEvent(TRACE_WARNING, "\n");
}
#endif


#if !defined(HAVE_NEDGE)
if (iface == NULL && strncmp(ifName, "sflow:", 6) == 0)
iface = new (std::nothrow) sFlowPktInterface(ifName);

#endif

#if defined(HAVE_NEDGE)
if (iface == NULL && strncmp(ifName, "nf:", 3) == 0)
iface = new (std::nothrow) NetfilterInterface(ifName);
Expand Down

0 comments on commit e9ef30e

Please sign in to comment.