Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
49fd3742
Commit
49fd3742
authored
Apr 14, 2008
by
Ryan Jackson
Browse files
Added LINK_UP to linux backend
Fixed bug in subscription code for simplex links.
parent
8543b5d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
event/delay-agent/new/DummynetPipe.cc
View file @
49fd3742
...
...
@@ -357,6 +357,24 @@ void NetlinkPipe::updateParameter(Parameter const & newParameter)
rtnl_qdisc_change
(
nl_handle
,
qdisc
,
NULL
);
rtnl_qdisc_put
(
qdisc
);
break
;
case
Parameter
::
LINK_UP
:
uint32_t
value
;
if
(
newParameter
.
getValue
())
{
value
=
1
;
}
else
{
value
=
0x7ffffffff
;
}
qdisc
=
rtnl_qdisc_get
(
qdisc_cache
,
ifindex
,
plrHandle
);
if
(
qdisc
==
NULL
)
{
cerr
<<
"Couldn't find plr qdisc "
<<
plrHandle
<<
endl
;
return
;
}
rtnl_plr_set_plr
(
qdisc
,
value
);
rtnl_qdisc_change
(
nl_handle
,
qdisc
,
NULL
);
rtnl_qdisc_put
(
qdisc
);
break
;
default:
break
;
}
...
...
event/delay-agent/new/main.cc
View file @
49fd3742
...
...
@@ -170,7 +170,7 @@ void readMapFile(string const & mapFile, string & linkSubscribe, string & resetS
g
::
pipeVault
.
push_front
(
first
);
g
::
pipes
.
insert
(
make_pair
(
/*"new" + */
first
.
name
,
g
::
pipeVault
.
begin
()));
g
::
pipes
.
insert
(
make_pair
(
/*"new" + */
first
.
linkName
,
g
::
pipeVault
.
begin
()));
addEntry
(
linkSubscribe
,
/*"new" + */
first
.
end
Name
);
addEntry
(
linkSubscribe
,
/*"new" + */
first
.
link
Name
);
addEntry
(
linkSubscribe
,
/*"new" + */
first
.
name
);
addEntry
(
resetSubscribe
,
/*"new" + */
first
.
name
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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