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
RevLine 
[2]1/*
2 * File: dataFlowSet.h
3 *
[15]4 * Authors: ANDREU Francois-Xavier
[2]5 *
[28]6 * Copyright (C) 2005 2006 2007 GIP RENATER
[2]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"
[16]33#include "get_conf.h"
[36]34#include "pop.h"
[16]35#include "prefix_mgmt.h"
[36]36#include "renetcolParam.h"
[2]37
[34]38#define TRESHOLD_TEMPLATE_ID 300
39
[18]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
[16]69struct AggCache {
70  unsigned short mode;
[17]71  unsigned char dscp;
72  unsigned char maskS;
73  unsigned char maskD;
74  unsigned char tProt;
75  unsigned char ipProt;
[22]76  unsigned char sens; /* In/out field 61 */
[17]77  unsigned short idSnmp;
[16]78  unsigned long bytes;
79  unsigned long pkts;
80  unsigned long routerAd;
[17]81  unsigned long v4AdS;
82  unsigned long v4AdD;
83  uint32_t tabAdd6S[4];
84  uint32_t tabAdd6D[4];
[16]85  /*  unsigned short mplsLabel1;
[17]86      unsigned long ifAdd; */
[16]87};
88
[23]89
[27]90short 
91checkDataFlowSet(short,
[23]92                 struct MyPtrs *,
93                 int,
94                 struct PrefixV4 *, size_t
95                 );
[2]96
97#endif /* DATAFLOWSET_H */
Note: See TracBrowser for help on using the browser.