Branch oldpackages for 14.07
[14.07/packages.git] / net / wprobe / src / exporter / wprobe-export.h
1 #include <inttypes.h>
2 #include <stdint.h>
3 #include <stdbool.h>
4
5 /**
6  * struct wprobe_value: data structure for attribute values
7  * see kernel api netlink attributes for more information
8  */
9 struct wprobe_value {
10         /* attribute value */
11         union data {
12                 const char *STRING;
13                 uint8_t U8;
14                 uint16_t U16;
15                 uint32_t U32;
16                 uint64_t U64;
17                 int8_t S8;
18                 int16_t S16;
19                 int32_t S32;
20                 int64_t S64;
21         } data;
22         /* statistics */
23         int64_t s, ss;
24         double avg, stdev;
25         unsigned int n;
26         void *usedata;  /* Pointer to used data.something */
27 };
28
29 struct exporter_data {
30         int id; /* ipfix id */
31         int userid; /* focus or global */
32         int size; /* size in byte*/
33         struct wprobe_value val;
34 };