Skip to content
GitLab
Menu
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
cf6eff0d
Commit
cf6eff0d
authored
Feb 20, 2007
by
Mike Hibler
Browse files
link trace hack part II: make sure the web form knows which port to contact.
parent
3fc31b69
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/linkmon_mon.php3
View file @
cf6eff0d
...
...
@@ -73,8 +73,14 @@ $idx = $tracerow['idx'];
#
# Wow, what a kludge. The port number is the index + 4442. See rc.trace.
# Wow, an even bigger kludge. If this is plabvmXXX-NN, add (10 * NN) to
# the portnum to create unique ports for each vnode on a pnode. See tmcd.c.
#
$portnum
=
4442
+
$idx
;
if
(
preg_match
(
"/^plabvm\d+-(\d+)$/"
,
$nodeid
,
$matches
))
{
$vnum
=
$matches
[
1
];
$portnum
+=
(
$vnum
*
10
);
}
#
# Clean up when the remote user disconnects
...
...
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