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
e42a39bc
Commit
e42a39bc
authored
Mar 19, 2002
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass through pid/eid info to trafgen
parent
5ed0a17b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
tmcd/common/libsetup.pm
tmcd/common/libsetup.pm
+7
-1
tmcd/libsetup.pm
tmcd/libsetup.pm
+7
-1
No files found.
tmcd/common/libsetup.pm
View file @
e42a39bc
...
...
@@ -754,6 +754,12 @@ sub dotrafficconfig()
$TM
=
OPENTMCC
(
TMCCCMD_BOSSINFO
);
(
$boss
)
=
split
("
",
<
$TM
>
);
close
(
$TM
);
my
(
$pid
,
$eid
,
$vname
)
=
check_status
();
my
$cmdline
=
"
$SETUPDIR
/trafgen -s
$boss
";
if
(
$pid
)
{
$cmdline
.=
"
-E
$pid
/
$eid
";
}
$TM
=
OPENTMCC
(
TMCCCMD_TRAFFIC
);
...
...
@@ -805,7 +811,7 @@ sub dotrafficconfig()
print
RC
"
#!/bin/sh
\n
";
$didopen
=
1
;
}
print
RC
"
$
SETUPDIR
/trafgen -s
$boss
-N
$name
-T
$target
-P
$proto
-R
$role
>/tmp/
$name
.debug 2>&1 &
\n
";
print
RC
"
$
cmdline
-N
$name
-T
$target
-P
$proto
-R
$role
>/tmp/
$name
.debug 2>&1 &
\n
";
}
else
{
warn
"
*** WARNING: Bad traffic line:
$_
";
...
...
tmcd/libsetup.pm
View file @
e42a39bc
...
...
@@ -754,6 +754,12 @@ sub dotrafficconfig()
$TM
=
OPENTMCC
(
TMCCCMD_BOSSINFO
);
(
$boss
)
=
split
("
",
<
$TM
>
);
close
(
$TM
);
my
(
$pid
,
$eid
,
$vname
)
=
check_status
();
my
$cmdline
=
"
$SETUPDIR
/trafgen -s
$boss
";
if
(
$pid
)
{
$cmdline
.=
"
-E
$pid
/
$eid
";
}
$TM
=
OPENTMCC
(
TMCCCMD_TRAFFIC
);
...
...
@@ -805,7 +811,7 @@ sub dotrafficconfig()
print
RC
"
#!/bin/sh
\n
";
$didopen
=
1
;
}
print
RC
"
$
SETUPDIR
/trafgen -s
$boss
-N
$name
-T
$target
-P
$proto
-R
$role
>/tmp/
$name
.debug 2>&1 &
\n
";
print
RC
"
$
cmdline
-N
$name
-T
$target
-P
$proto
-R
$role
>/tmp/
$name
.debug 2>&1 &
\n
";
}
else
{
warn
"
*** WARNING: Bad traffic line:
$_
";
...
...
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