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
ce044778
Commit
ce044778
authored
Dec 22, 2004
by
Leigh B. Stoller
Browse files
Return default ntp server to local nodes if no node specific entries
are listed in the ntpinfo table.
parent
510448b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/tmcd.c
View file @
ce044778
...
...
@@ -57,6 +57,7 @@
#define DOTSFS ".sfs"
#define RUNASUSER "nobody"
#define RUNASGROUP "nobody"
#define NTPSERVER "ntp1"
#define TESTMODE
#define DEFAULTNETMASK "255.255.255.0"
...
...
@@ -4263,6 +4264,18 @@ COMMAND_PROTOTYPE(dontpinfo)
nrows
--
;
}
}
else
if
(
reqp
->
islocal
)
{
/*
* All local nodes default to a our local ntp server,
* which is typically a CNAME to ops.
*/
OUTPUT
(
buf
,
sizeof
(
buf
),
"SERVER=%s.%s
\n
"
,
NTPSERVER
,
OURDOMAIN
);
client_writeback
(
sock
,
buf
,
strlen
(
buf
),
tcp
);
if
(
verbose
)
info
(
"NTPINFO: %s"
,
buf
);
}
mysql_free_result
(
res
);
/*
...
...
Write
Preview
Supports
Markdown
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