From: Frank Kardel Date: Sat, 13 Jan 2007 11:36:29 +0000 (+0000) Subject: ntp_intres.c: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a20cab43ffbd0cbbeec63e7ebd669b40265240f7;p=thirdparty%2Fntp.git ntp_intres.c: support dynamic keyword bk: 45a8c43d0MNBpf524j1Xk03QGV2Sog --- diff --git a/ntpd/ntp_intres.c b/ntpd/ntp_intres.c index f2aabe83e8..830ef437af 100644 --- a/ntpd/ntp_intres.c +++ b/ntpd/ntp_intres.c @@ -1059,7 +1059,7 @@ readconf( } if ((intval[TOK_FLAGS] & ~(FLAG_AUTHENABLE | FLAG_PREFER | - FLAG_NOSELECT | FLAG_BURST | FLAG_IBURST | FLAG_SKEY)) + FLAG_NOSELECT | FLAG_BURST | FLAG_IBURST | FLAG_SKEY | FLAG_DYNAMIC)) != 0) { msyslog(LOG_ERR, "invalid flags (%ld) in file %s", intval[TOK_FLAGS], name); @@ -1079,6 +1079,8 @@ readconf( flags |= CONF_FLAG_IBURST; if (intval[TOK_FLAGS] & FLAG_SKEY) flags |= CONF_FLAG_SKEY; + if (intval[TOK_FLAGS] & FLAG_DYNAMIC) + flags |= CONF_FLAG_DYNAMIC; /* * This is as good as we can check it. Add it in.