Revision 61, 2.5 KB
(checked in by andreu, 15 years ago)
|
tickets 12,19 & 20 closed
|
-
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 "as.h" |
---|
35 | #include "pop.h" |
---|
36 | #include "prefix_mgmt.h" |
---|
37 | #include "renetcolParam.h" |
---|
38 | |
---|
39 | #define TRESHOLD_TEMPLATE_ID 300 |
---|
40 | |
---|
41 | struct IPFLowCache { |
---|
42 | unsigned char ipProt; |
---|
43 | unsigned long bytes; |
---|
44 | unsigned long pkts; |
---|
45 | unsigned short inSnmp; |
---|
46 | unsigned short outSnmp; |
---|
47 | unsigned long v4AdS; |
---|
48 | unsigned long v4AdD; |
---|
49 | uint32_t tabAdd6S[4]; |
---|
50 | uint32_t tabAdd6D[4]; |
---|
51 | unsigned char tProt; |
---|
52 | unsigned short sPort; |
---|
53 | unsigned short dPort; |
---|
54 | unsigned char maskD; |
---|
55 | unsigned char maskS; |
---|
56 | unsigned long routerAd; |
---|
57 | unsigned long liveTime; |
---|
58 | }; |
---|
59 | |
---|
60 | struct MPLSFlowCache { |
---|
61 | unsigned char ipProt; |
---|
62 | unsigned long routerAd; |
---|
63 | unsigned short mplsLabel1; |
---|
64 | unsigned long v4AdS; |
---|
65 | unsigned long v4AdD; |
---|
66 | uint32_t tabAdd6S[4]; |
---|
67 | uint32_t tabAdd6D[4]; |
---|
68 | }; |
---|
69 | |
---|
70 | struct AggCache { |
---|
71 | unsigned short mode; |
---|
72 | unsigned char dscp; |
---|
73 | unsigned char maskS; |
---|
74 | unsigned char maskD; |
---|
75 | unsigned char tProt; |
---|
76 | unsigned char ipProt; |
---|
77 | unsigned char sens; |
---|
78 | unsigned short inputSnmp; |
---|
79 | unsigned short outputSnmp; |
---|
80 | unsigned long bytes; |
---|
81 | unsigned long pkts; |
---|
82 | unsigned long routerAd; |
---|
83 | unsigned long v4AdS; |
---|
84 | unsigned long v4AdD; |
---|
85 | uint32_t tabAdd6S[4]; |
---|
86 | uint32_t tabAdd6D[4]; |
---|
87 | #ifdef ASACC |
---|
88 | unsigned short asS; |
---|
89 | unsigned short asD; |
---|
90 | #endif |
---|
91 | |
---|
92 | |
---|
93 | }; |
---|
94 | |
---|
95 | |
---|
96 | short |
---|
97 | checkDataFlowSet(short, |
---|
98 | struct MyPtrs *, |
---|
99 | int, |
---|
100 | struct PrefixV4 *, size_t, |
---|
101 | struct PrefixV4 *, size_t |
---|
102 | ); |
---|
103 | |
---|
104 | #endif |
---|