summaryrefslogtreecommitdiff
path: root/package/wprobe/src/exporter/wprobe-export.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-26 20:56:47 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-26 20:56:47 +0000
commit548478cdb24d4f588659b4e64b062aabccd76047 (patch)
treec0e8bd3d854551cb6e622246a4a9e4e7e2d57f81 /package/wprobe/src/exporter/wprobe-export.h
parent47abb6b3c307fe0d4845a61a2c91101218f745a1 (diff)
downloadmtk-20170518-548478cdb24d4f588659b4e64b062aabccd76047.zip
mtk-20170518-548478cdb24d4f588659b4e64b062aabccd76047.tar.gz
mtk-20170518-548478cdb24d4f588659b4e64b062aabccd76047.tar.bz2
add wireless measurement probe infrastructure, developed at Fraunhofer FOKUS
SVN-Revision: 15050
Diffstat (limited to 'package/wprobe/src/exporter/wprobe-export.h')
-rw-r--r--package/wprobe/src/exporter/wprobe-export.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/wprobe/src/exporter/wprobe-export.h b/package/wprobe/src/exporter/wprobe-export.h
new file mode 100644
index 0000000..89da9e8
--- /dev/null
+++ b/package/wprobe/src/exporter/wprobe-export.h
@@ -0,0 +1,34 @@
+#include <inttypes.h>
+#include <stdint.h>
+#include <stdbool.h>
+
+/**
+ * struct wprobe_value: data structure for attribute values
+ * see kernel api netlink attributes for more information
+ */
+struct wprobe_value {
+ /* attribute value */
+ union data {
+ const char *STRING;
+ uint8_t U8;
+ uint16_t U16;
+ uint32_t U32;
+ uint64_t U64;
+ int8_t S8;
+ int16_t S16;
+ int32_t S32;
+ int64_t S64;
+ } data;
+ /* statistics */
+ int64_t s, ss;
+ double avg, stdev;
+ unsigned int n;
+ void *usedata; /* Pointer to used data.something */
+};
+
+struct exporter_data {
+ int id; /* ipfix id */
+ int userid; /* focus or global */
+ int size; /* size in byte*/
+ struct wprobe_value val;
+};