00001 #include<stdio.h>
00002 #define hop_limit 50
00003
00004 struct flow_list{
00005 double time;
00006 double bw;
00007 struct flow_list *next;
00008 };
00009
00010 struct flow_event{
00011 double delay;
00012 double deltaCBR;
00013 double NetCBR;
00014 };
00015
00016 struct flow_list *create_new_flow_event(double time, double bw);
00017
00018 void flow_list_insert(double time, double bw, struct flow_list **root);
00019
00020 void dump_flow_list_to_file(FILE* file, struct flow_list *root);
00021
00022 int get_no_events(struct flow_list *root);
00023
00024 struct flow_event* get_all_events(struct flow_list *root);
00025