Debian Codegraph @

src/ITGSend/traffic.h

raw symbols SCIP
1 /*
2 * Component of the D-ITG 2.8.1 (r1023) platform (http://traffic.comics.unina.it/software/ITG)
3 *
4 * Copyright : (C) 2004-2013 by Alessio Botta, Walter de Donato, Alberto Dainotti,
5 * Stefano Avallone, Antonio Pescape' (PI)
6 * COMICS (COMputer for Interaction and CommunicationS) Group
7 * Department of Electrical Engineering and Information Technologies
8 * University of Napoli "Federico II".
9 * email : [email protected], [email protected], [email protected],
10 * [email protected], [email protected]
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 * For commercial use please refer to D-ITG Professional.
26 */
27
28
29
30
31 typedef enum { pdConstant, pdUniform, pdExponential, pdPareto, pdCauchy, pdNormal, pdPoisson, pdGamma, pdWeibull,
32 pdTelnet, pdAoM, pdDiscrete, pdExtreme_Largest, pdQuake, pdStudent, pdCSa,pdCSi } TDistro;
33
34 extern const char *DistroStrings[];
35 extern const unsigned int DefaultPktPerSec;
36 extern const unsigned int DefaultPktSize;
37 extern const unsigned long DefaultDuration;
38 extern const unsigned long DefaultDelay;
39
40 extern Constant *ConstantRV;
41 extern Uniform *UniformRV;
42 extern Exponential *ExponentialRV;
43 extern Pareto *ParetoRV;
44 extern Cauchy *CauchyRV;
45 extern Normal *NormalRV;
46 extern Poisson *PoissonRV;
47 extern Gamma *GammaRV;
48
49 extern Weibull *WeibullRV;
50
51 extern Extreme_Largest *Extreme_LargestRV;
52 extern Student *StudentRV;
53
54
55
56 void telnetParser(SumRandom ** pIntArriv, SumRandom ** pPktSize, TDistro & IntArrivDistro,
57 TDistro & PktSizeDistro);
58 void voIPParser(int h, char *argv[], int &argc, unsigned int flowId, SumRandom ** pIntArriv,
59 SumRandom ** pPktSize, TDistro & IntArrivDistro, TDistro & PktSizeDistro);
60 void dnsParser(SumRandom ** pIntArriv, SumRandom ** pPktSize, TDistro & IntArrivDistro,
61 TDistro & PktSizeDistro);
62
63 void CSParsera(SumRandom ** pIntArriv, SumRandom ** pPktSize, TDistro & IntArrivDistro,
64 TDistro & PktSizeDistro);
65 void QuakeParser(SumRandom ** pIntArriv, SumRandom ** pPktSize, TDistro & IntArrivDistro, TDistro & PktSizeDistro);
66 void CSParseri(SumRandom ** pIntArriv, SumRandom ** pPktSize, TDistro & IntArrivDistro,
67 TDistro & PktSizeDistro);
68
69 #ifdef BURSTY
70 void burstyParser(int &h, char *argv[], int &argc, unsigned int flowId, SumRandom ** OnPeriod,
71 SumRandom ** OffPeriod, TDistro & OnPeriodDistro, TDistro & OffPeriodDistro);
72 #endif
73