From 743cea45434a5a3c6560a73f29632c6352874c61 Mon Sep 17 00:00:00 2001 From: Neil Mckee Date: Tue, 30 Apr 2013 22:38:53 -0700 Subject: Change sFlow model to reflect per-bridge sampling Until now, we were presenting a separate sFlow data-source (sampler) for each ifIndex-interface. This caused problems with samples that did not easily map to an ifIndex being aliased together and breaking the sFlow containment rules. This patch changes the model to present a single sFlow data-source for each bridge. Now we can still make all reasonable effort to map packet samples to ingress/egress ifIndex numbers, knowing that the fallback to "unknown" does not break the sFlow model. Note that interface-counter-polling is still handled the same way as before, with sFlow counter-polling data only being exported for ifIndex-interfaces. Signed-off-by: Neil Mckee Signed-off-by: Ben Pfaff --- lib/sflow.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/sflow.h') diff --git a/lib/sflow.h b/lib/sflow.h index 8ea96937f..0d1f2b9cd 100644 --- a/lib/sflow.h +++ b/lib/sflow.h @@ -8,6 +8,13 @@ #ifndef SFLOW_H #define SFLOW_H 1 +typedef enum { + SFL_DSCLASS_IFINDEX = 0, + SFL_DSCLASS_VLAN = 1, + SFL_DSCLASS_PHYSICAL_ENTITY = 2, + SFL_DSCLASS_LOGICAL_ENTITY = 3 +} SFL_DSCLASS; + enum SFLAddress_type { SFLADDRESSTYPE_IP_V4 = 1, SFLADDRESSTYPE_IP_V6 = 2 -- cgit v1.2.1