diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-26 20:56:47 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-26 20:56:47 +0000 |
commit | fc05d24bf7d299121f2df9b8ca4fe01a44e2e4d8 (patch) | |
tree | a337608fb3f1f3cb26d1d1368a44779669b33385 /package/wprobe/src/exporter/wprobe-export.h | |
parent | 6767c41a1aae51c5e6b3d1461693fcf0e423d15f (diff) | |
download | master-187ad058-fc05d24bf7d299121f2df9b8ca4fe01a44e2e4d8.tar.gz master-187ad058-fc05d24bf7d299121f2df9b8ca4fe01a44e2e4d8.tar.bz2 master-187ad058-fc05d24bf7d299121f2df9b8ca4fe01a44e2e4d8.zip |
add wireless measurement probe infrastructure, developed at Fraunhofer FOKUS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15050 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/wprobe/src/exporter/wprobe-export.h')
-rw-r--r-- | package/wprobe/src/exporter/wprobe-export.h | 34 |
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 0000000000..89da9e86e3 --- /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; +}; |