#include <stdio.h>
#include <stdlib.h>
#include "dosdbell.h"
Include dependency graph for dosdbellasim.c:

Go to the source code of this file.
Functions | |
| main (int argc, char **argv) | |
| void | set_Topology (FILE *filer) |
| void | TCL_Write_Agents (FILE *) |
| void | TCL_Write_Connections (FILE *) |
| void | TCL_Write_DDOS_Agent (FILE *) |
| void | TCL_Write_Final (FILE *) |
| void | TCL_Write_Initial (FILE *) |
| void | TCL_Write_Nodes (FILE *) |
Variables | |
| float | bn_bw |
| float | bn_delay |
| double | bw |
| double | DDOS_start_time |
| int | diameter |
| double | finish_time |
| int | pack_size |
| double | TCP_start_time |
| Topology | topo |
|
||||||||||||
|
Definition at line 35 of file dosdbellasim.c. References set_Topology(), TCL_Write_Agents(), TCL_Write_Connections(), TCL_Write_DDOS_Agent(), TCL_Write_Initial(), and TCL_Write_Nodes(). 00035 { 00036 FILE *filer; 00037 00038 if(argc !=3){ 00039 printf("USAGE: %s parameter_filename tcloutput_filename\n",argv[0]); 00040 exit(0); 00041 } 00042 else{ 00043 filer = fopen(argv[1],"r"); 00044 set_Topology(filer); 00045 fclose(filer); 00046 filer = fopen(argv[2],"w"); 00047 TCL_Write_Initial(filer); 00048 TCL_Write_Nodes(filer); 00049 TCL_Write_Connections(filer); 00050 TCL_Write_Agents(filer); 00051 TCL_Write_DDOS_Agent(filer); 00052 /* TCL_Write_Final(filer);*/ 00053 fclose(filer); 00054 } 00055 }
Here is the call graph for this function: ![]() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 33 of file dosdbellasim.c. |
|
|
Definition at line 32 of file dosdbellasim.c. |
|
|
Definition at line 30 of file dosdbellasim.c. |
|
|
Definition at line 28 of file dosdbellasim.c. |
|
|
Definition at line 26 of file dosdbellasim.c. |
|
|
Definition at line 29 of file dosdbellasim.c. |
|
|
Definition at line 31 of file dosdbellasim.c. |
|
|
Definition at line 27 of file dosdbellasim.c. |
|
|
Definition at line 25 of file dosdbellasim.c. |
1.4.6