Revision 58, 2.4 KB
(checked in by andreu, 15 years ago)
|
new aggregation method, new configuration files, corrections on the php script for graph generation.
|
-
Property svn:eol-style set to
native
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | |
---|
12 | |
---|
13 | |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | |
---|
24 | |
---|
25 | #ifndef DATAFLOWSET_H |
---|
26 | #define DATAFLOWSET_H |
---|
27 | |
---|
28 | #define _GNU_SOURCE |
---|
29 | #include "routers_mgmt.h" |
---|
30 | #include "tplflset_mgmt.h" |
---|
31 | #include "template.h" |
---|
32 | #include "msg_mgmt.h" |
---|
33 | #include "get_conf.h" |
---|
34 | #include "pop.h" |
---|
35 | #include "prefix_mgmt.h" |
---|
36 | #include "renetcolParam.h" |
---|
37 | |
---|
38 | #define TRESHOLD_TEMPLATE_ID 300 |
---|
39 | |
---|
40 | struct IPFLowCache { |
---|
41 | unsigned char ipProt; |
---|
42 | unsigned long bytes; |
---|
43 | unsigned long pkts; |
---|
44 | unsigned short inSnmp; |
---|
45 | unsigned short outSnmp; |
---|
46 | unsigned long v4AdS; |
---|
47 | unsigned long v4AdD; |
---|
48 | uint32_t tabAdd6S[4]; |
---|
49 | uint32_t tabAdd6D[4]; |
---|
50 | unsigned char tProt; |
---|
51 | unsigned short sPort; |
---|
52 | unsigned short dPort; |
---|
53 | unsigned char maskD; |
---|
54 | unsigned char maskS; |
---|
55 | unsigned long routerAd; |
---|
56 | unsigned long liveTime; |
---|
57 | }; |
---|
58 | |
---|
59 | struct MPLSFlowCache { |
---|
60 | unsigned char ipProt; |
---|
61 | unsigned long routerAd; |
---|
62 | unsigned short mplsLabel1; |
---|
63 | unsigned long v4AdS; |
---|
64 | unsigned long v4AdD; |
---|
65 | uint32_t tabAdd6S[4]; |
---|
66 | uint32_t tabAdd6D[4]; |
---|
67 | }; |
---|
68 | |
---|
69 | struct AggCache { |
---|
70 | unsigned short mode; |
---|
71 | unsigned char dscp; |
---|
72 | unsigned char maskS; |
---|
73 | unsigned char maskD; |
---|
74 | unsigned char tProt; |
---|
75 | unsigned char ipProt; |
---|
76 | unsigned char sens; |
---|
77 | unsigned short inputSnmp; |
---|
78 | unsigned short outputSnmp; |
---|
79 | unsigned long bytes; |
---|
80 | unsigned long pkts; |
---|
81 | unsigned long routerAd; |
---|
82 | unsigned long v4AdS; |
---|
83 | unsigned long v4AdD; |
---|
84 | uint32_t tabAdd6S[4]; |
---|
85 | uint32_t tabAdd6D[4]; |
---|
86 | |
---|
87 | |
---|
88 | }; |
---|
89 | |
---|
90 | |
---|
91 | short |
---|
92 | checkDataFlowSet(short, |
---|
93 | struct MyPtrs *, |
---|
94 | int, |
---|
95 | struct PrefixV4 *, size_t |
---|
96 | ); |
---|
97 | |
---|
98 | #endif |
---|