Revision 114, 2.6 KB
(checked in by andreu, 14 years ago)
|
add some counters in software (see renetcol_mib.h & dataFlowSet.c
|
-
Property svn:eol-style set to
native
|
Rev | Line | |
---|
[2] | 1 | |
---|
| 2 | |
---|
| 3 | |
---|
[15] | 4 | |
---|
[2] | 5 | |
---|
[28] | 6 | |
---|
[2] | 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" |
---|
[16] | 33 | #include "get_conf.h" |
---|
[60] | 34 | #include "as.h" |
---|
[36] | 35 | #include "pop.h" |
---|
[16] | 36 | #include "prefix_mgmt.h" |
---|
[36] | 37 | #include "renetcolParam.h" |
---|
[2] | 38 | |
---|
[34] | 39 | #define TRESHOLD_TEMPLATE_ID 300 |
---|
| 40 | |
---|
[18] | 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 | |
---|
[16] | 70 | struct AggCache { |
---|
| 71 | unsigned short mode; |
---|
[17] | 72 | unsigned char dscp; |
---|
| 73 | unsigned char maskS; |
---|
| 74 | unsigned char maskD; |
---|
| 75 | unsigned char tProt; |
---|
| 76 | unsigned char ipProt; |
---|
[114] | 77 | unsigned short sPort; |
---|
| 78 | unsigned short dPort; |
---|
[22] | 79 | unsigned char sens; |
---|
[58] | 80 | unsigned short inputSnmp; |
---|
| 81 | unsigned short outputSnmp; |
---|
[16] | 82 | unsigned long bytes; |
---|
| 83 | unsigned long pkts; |
---|
| 84 | unsigned long routerAd; |
---|
[17] | 85 | unsigned long v4AdS; |
---|
| 86 | unsigned long v4AdD; |
---|
| 87 | uint32_t tabAdd6S[4]; |
---|
| 88 | uint32_t tabAdd6D[4]; |
---|
[60] | 89 | #ifdef ASACC |
---|
| 90 | unsigned short asS; |
---|
| 91 | unsigned short asD; |
---|
| 92 | #endif |
---|
[16] | 93 | |
---|
[17] | 94 | |
---|
[16] | 95 | }; |
---|
| 96 | |
---|
[23] | 97 | |
---|
[27] | 98 | short |
---|
| 99 | checkDataFlowSet(short, |
---|
[23] | 100 | struct MyPtrs *, |
---|
| 101 | int, |
---|
[61] | 102 | struct PrefixV4 *, size_t, |
---|
[23] | 103 | struct PrefixV4 *, size_t |
---|
| 104 | ); |
---|
[2] | 105 | |
---|
| 106 | #endif |
---|