Commit 370e8a3c authored by Mike Hibler's avatar Mike Hibler

Hack to keep delay-agent compiling in the face of different versions

of dummynet code.
parent 02670b75
......@@ -426,8 +426,9 @@ void set_link_params(int l_index, int blackhole, int p_which)
pipe.bandwidth = p_params->bw;
pipe.delay = p_params->delay;
/* pramod-CHANGES */
pipe.backfill = p_params->backfill;
#ifdef DN_HAVE_BACKFILL
pipe.backfill = p_params->backfill;
#endif
/* set the pipe number*/
pipe.pipe_nr = link_map[l_index].pipes[p_index];
......@@ -600,18 +601,17 @@ int get_new_link_params(int l_index, event_handle_t handle,
while((argvalue = strsep(&temp," \n"))){
/*pramod-CHANGES: */
/* Backfill parameters. */
if(strcmp(argtype,"BACKFILL")== 0){
link_map[l_index].params[p_num].backfill = atoi(argvalue) * 1000;
if (! gotpipe) {
link_map[l_index].params[1].backfill =
link_map[l_index].params[0].backfill;
}
#ifdef DN_HAVE_BACKFILL
/* Backfill parameters. */
if(strcmp(argtype,"BACKFILL")== 0){
link_map[l_index].params[p_num].backfill = atoi(argvalue) * 1000;
if (! gotpipe) {
link_map[l_index].params[1].backfill =
link_map[l_index].params[0].backfill;
}
else if(strcmp(argtype,"BANDWIDTH")== 0){
} else
#endif
if(strcmp(argtype,"BANDWIDTH")== 0){
info("Bandwidth = %d\n", atoi(argvalue) * 1000);
link_map[l_index].params[p_num].bw = atoi(argvalue) * 1000;
if (! gotpipe) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment