Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
370e8a3c
Commit
370e8a3c
authored
Dec 17, 2008
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack to keep delay-agent compiling in the face of different versions
of dummynet code.
parent
02670b75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
event/delay-agent/callback.c
event/delay-agent/callback.c
+13
-13
No files found.
event/delay-agent/callback.c
View file @
370e8a3c
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment