[Git][NTPsec/ntpsec][master] Don't enable interfaces in replay mode.
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Dec 4 21:07:22 UTC 2015
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
c1fead46 by Eric S. Raymond at 2015-12-04T16:07:02Z
Don't enable interfaces in replay mode.
- - - - -
2 changed files:
- ntpd/ntp_config.c
- ntpd/ntpd.c
Changes:
=====================================
ntpd/ntp_config.c
=====================================
--- a/ntpd/ntp_config.c
+++ b/ntpd/ntp_config.c
@@ -2735,6 +2735,10 @@ config_nic_rules(
curr_node = HEAD_PFIFO(ptree->nic_rules);
+ /* we don't want to accept packets if we're replating a log */
+ if (intercept_get_mode() == replay)
+ return;
+
if (curr_node != NULL && have_interface_option) {
msyslog(LOG_ERR,
"interface/nic rules are not allowed with --interface (-I) or --novirtualips (-L)%s",
=====================================
ntpd/ntpd.c
=====================================
--- a/ntpd/ntpd.c
+++ b/ntpd/ntpd.c
@@ -787,6 +787,7 @@ ntpdmain(
stats_config(STATS_FREQ_FILE, driftfile);
break;
case 'I':
+ if (intercept_get_mode() != replay)
{
sockaddr_u addr;
add_nic_rule(
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c1fead463890b67114aaa59373f57bf74a736de9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151204/23befb18/attachment.html>
More information about the vc
mailing list