root/trunk/src/dataFlowSet.h @ 36

Revision 36, 2.4 KB (checked in by andreu, 16 years ago)

ticket #1 #2 #7 closed - release 0.0.9beta

  • Property svn:eol-style set to native
Line 
1/*
2 * File: dataFlowSet.h
3 *
4 * Authors: ANDREU Francois-Xavier
5 *
6 * Copyright (C) 2005 2006 2007 GIP RENATER
7 */
8
9/*  This file is part of renetcol.
10 *
11 *  renetcol is free software; you can redistribute it and/or modify
12 *  it under the terms of the GNU General Public License as published by
13 *  the Free Software Foundation; either version 2 of the License, or
14 *  (at your option) any later version.
15 *
16 *  renetcol is distributed in the hope that it will be useful,
17 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 *  GNU General Public License for more details.
20 *
21 *  You should have received a copy of the GNU General Public License
22 *  along with renetcol; if not, write to the Free Software
23 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
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
40struct IPFLowCache {
41  unsigned char ipProt; /* not write in file, just to know IP version */
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
59struct MPLSFlowCache {
60  unsigned char ipProt; /* not write in file, just to know IP version */
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
69struct 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; /* In/out field 61 */
77  unsigned short idSnmp;
78  unsigned long bytes;
79  unsigned long pkts;
80  unsigned long routerAd;
81  unsigned long v4AdS;
82  unsigned long v4AdD;
83  uint32_t tabAdd6S[4];
84  uint32_t tabAdd6D[4];
85  /*  unsigned short mplsLabel1;
86      unsigned long ifAdd; */
87};
88
89
90short 
91checkDataFlowSet(short,
92                 struct MyPtrs *,
93                 int,
94                 struct PrefixV4 *, size_t
95                 );
96
97#endif /* DATAFLOWSET_H */
Note: See TracBrowser for help on using the browser.