Skip to content

Commit

Permalink
mod_sonic remap ifIndex namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sflow committed Jul 3, 2020
1 parent ad31104 commit 5bbd86d
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 40 deletions.
2 changes: 1 addition & 1 deletion hsflowd.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Summary: host sFlow daemon
Name: hsflowd
Version: 2.0.27
Version: 2.0.28
Release: 1
License: http://sflow.net/license.html
Group: Applications/Internet
Expand Down
14 changes: 13 additions & 1 deletion src/Linux/hsflowd.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ extern "C" {

// The generic start,tick,tock,final,end events are defined in evbus.h
#define HSPEVENT_HOST_COUNTER_SAMPLE "csample" // (csample *) building counter-sample
#define HSPEVENT_INTF_COUNTER_SAMPLE "icsample" // (csample *) building intf counter-sample
#define HSPEVENT_FLOW_SAMPLE "flow_sample" // (HSPPendingSample *) building flow-sample
#define HSPEVENT_CONFIG_START "config_start" // begin config lines
#define HSPEVENT_CONFIG_LINE "config_line" // (line)...next config line
Expand Down Expand Up @@ -389,15 +390,24 @@ extern "C" {
bool localTest:1;
bool localSrc:1;
bool localDst:1;
bool suppress:1;
} HSPPendingSample;

typedef struct _HSPPendingCSample {
SFL_COUNTERS_SAMPLE_TYPE *cs;
SFLPoller *poller;
bool suppress:1;
} HSPPendingCSample;

typedef enum {
HSP_TELEMETRY_FLOW_SAMPLES=0,
HSP_TELEMETRY_COUNTER_SAMPLES,
HSP_TELEMETRY_RTMETRIC_SAMPLES,
HSP_TELEMETRY_RTFLOW_SAMPLES,
HSP_TELEMETRY_DATAGRAMS,
HSP_TELEMETRY_DROPPED_SAMPLES,
HSP_TELEMETRY_FLOW_SAMPLES_SUPPRESSED,
HSP_TELEMETRY_COUNTER_SAMPLES_SUPPRESSED,
HSP_TELEMETRY_NUM_COUNTERS
} EnumHSPTelemetry;

Expand All @@ -408,7 +418,9 @@ extern "C" {
"rtmetric_samples",
"rtflow_samples",
"datagrams",
"dropped_samples"
"dropped_samples",
"flow_samples_suppressed",
"counter_samples_suppressed"
};
#endif

Expand Down
Loading

0 comments on commit 5bbd86d

Please sign in to comment.