Skip to content

Commit

Permalink
Compilation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaderi committed Nov 14, 2024
1 parent 6ee1000 commit 64469a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 3 additions & 0 deletions src/sFlowPktInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include "ntop_includes.h"

#ifndef HAVE_NEDGE
#include "../third-party/sflow_collect.c"

/* **************************************************** */
Expand Down Expand Up @@ -128,3 +129,5 @@ void sFlowPktInterface::shutdown() {
}

/* **************************************************** */

#endif
11 changes: 3 additions & 8 deletions third-party/sflow_collect.c
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,7 @@ static int readFlowSample_v2v4(SFSample *sample)
-----------------___________________________------------------
*/

static int lengthCheck(SFSample *sample, const char *description, u_char *start, int len) {
static int lengthCheck(SFSample *sample, const char *description, u_char *start, u_int32_t len) {
u_int32_t actualLen = (u_char *)sample->datap - start;

if(actualLen != len)
Expand Down Expand Up @@ -3773,13 +3773,8 @@ static void handleSflowCountersSample(SFSample *sample) {

/* =============================================================== */

static void update_flow_stats(u_int32_t probe_ipv4_address, u_int32_t source_id, u_int32_t num_flows) {

}

/* =============================================================== */

static void handleSflowSample(sFlowPktInterface *iface, SFSample *sample, int deviceId) {
static void handleSflowSample(sFlowPktInterface *iface,
SFSample *sample, int deviceId) {
struct pcap_pkthdr pkthdr;
u_int32_t msk = 0;

Expand Down

0 comments on commit 64469a4

Please sign in to comment.