Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
1c9c4233
Commit
1c9c4233
authored
Sep 22, 2008
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return the event server in the jailconfig call. Should probably
generalize this.
parent
4ab48062
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
tmcd/tmcd.c
tmcd/tmcd.c
+14
-2
No files found.
tmcd/tmcd.c
View file @
1c9c4233
...
@@ -5051,6 +5051,16 @@ COMMAND_PROTOTYPE(dojailconfig)
...
@@ -5051,6 +5051,16 @@ COMMAND_PROTOTYPE(dojailconfig)
if
(
!
reqp
->
jailflag
)
if
(
!
reqp
->
jailflag
)
return
0
;
return
0
;
/*
* geni nodes get something completely different.
*/
if
(
reqp
->
genisliver_idx
)
{
OUTPUT
(
bufp
,
sizeof
(
buf
),
"EVENTSERVER=
\"
event-server.%s
\"\n
"
,
OURDOMAIN
);
client_writeback
(
sock
,
buf
,
strlen
(
buf
),
tcp
);
return
0
;
}
/*
/*
* Get the portrange for the experiment. Cons up the other params I
* Get the portrange for the experiment. Cons up the other params I
* can think of right now.
* can think of right now.
...
@@ -5108,8 +5118,10 @@ COMMAND_PROTOTYPE(dojailconfig)
...
@@ -5108,8 +5118,10 @@ COMMAND_PROTOTYPE(dojailconfig)
"IPFW=1
\n
"
"IPFW=1
\n
"
"IPDIVERT=1
\n
"
"IPDIVERT=1
\n
"
"ROUTING=%d
\n
"
"ROUTING=%d
\n
"
"DEVMEM=%d
\n
"
,
"DEVMEM=%d
\n
"
low
,
high
,
atoi
(
row
[
0
]),
reqp
->
islocal
,
reqp
->
islocal
);
"EVENTSERVER=
\"
event-server.%s
\"\n
"
,
low
,
high
,
atoi
(
row
[
0
]),
reqp
->
islocal
,
reqp
->
islocal
,
OURDOMAIN
);
client_writeback
(
sock
,
buf
,
strlen
(
buf
),
tcp
);
client_writeback
(
sock
,
buf
,
strlen
(
buf
),
tcp
);
mysql_free_result
(
res
);
mysql_free_result
(
res
);
...
...
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