* ntpd/ntp_config.c: Add "version" support.
(getconfig): version support.
* include/ntp_config.h (CONF_RES_VERSION): Added.
* include/ntp.h (RES_VERSION): Added.
From: Dave Mills.
* include/ntp_machine.h (ifreq): WinNT cleanup
bk: 3ae7626dZ-Ux6FLF9WxOUD_mBHjQRA
+2001-04-25 Harlan Stenn <stenn@whimsy.udel.edu>
+
+ * ntpd/ntp_config.c: Add "version" support.
+ (getconfig): version support.
+ * include/ntp_config.h (CONF_RES_VERSION): Added.
+ * include/ntp.h (RES_VERSION): Added.
+ From: Dave Mills.
+
+ * include/ntp_machine.h (ifreq): WinNT cleanup
+
2001-04-23 Harlan Stenn <stenn@whimsy.udel.edu>
* configure.in: 4.0.99k29
/*
* Access flags
*/
-#define RES_IGNORE 0x1 /* ignore if matched */
-#define RES_DONTSERVE 0x2 /* don't give him any time */
-#define RES_DONTTRUST 0x4 /* don't trust if matched */
-#define RES_NOQUERY 0x8 /* don't allow queries if matched */
-#define RES_NOMODIFY 0x10 /* don't allow him to modify server */
-#define RES_NOPEER 0x20 /* don't allocate memory resources */
-#define RES_NOTRAP 0x40 /* don't allow him to set traps */
-#define RES_LPTRAP 0x80 /* traps set by him are low priority */
-#define RES_LIMITED 0x100 /* limit per net number of clients */
+#define RES_IGNORE 0x001 /* ignore if matched */
+#define RES_DONTSERVE 0x002 /* don't give him any time */
+#define RES_DONTTRUST 0x004 /* don't trust if matched */
+#define RES_NOQUERY 0x008 /* don't allow queries if matched */
+#define RES_NOMODIFY 0x010 /* don't allow him to modify server */
+#define RES_NOPEER 0x020 /* don't allocate memory resources */
+#define RES_NOTRAP 0x040 /* don't allow him to set traps */
+#define RES_LPTRAP 0x080 /* traps set by him are low priority */
+#define RES_VERSION 0x100 /* serve only current version */
+#define RES_LIMITED 0x200 /* limit per net number of clients */
#define RES_ALLFLAGS \
(RES_IGNORE|RES_DONTSERVE|RES_DONTTRUST|RES_NOQUERY\
#define CONF_RES_NOTRAP 8
#define CONF_RES_LPTRAP 9
#define CONF_RES_NTPPORT 10
-#define CONF_RES_LIMITED 11
+#define CONF_RES_VERSION 11
+#define CONF_RES_LIMITED 12
/*
* "trap" modifier keywords
error "NT requires config.h to be included"
# endif /* HAVE_CONFIG_H) */
-#if defined SYS_WINNT
# define ifreq _INTERFACE_INFO
# define ifr_flags iiFlags
# define ifr_addr iiAddress.AddressIn
# define ifr_broadaddr iiBroadcastAddress.AddressIn
# define ifr_mask iiNetmask.AddressIn
-#endif /* SYS_WINNT */
# define isascii __isascii
# define isatty _isatty
# define mktemp _mktemp
-# define getpid GetCurrentProcessId
+# if 0
+# define getpid GetCurrentProcessId
+# endif
# include <windows.h>
# include <ws2tcpip.h>
# undef interface
{ "notrap", CONF_RES_NOTRAP },
{ "notrust", CONF_RES_NOTRUST },
{ "ntpport", CONF_RES_NTPPORT },
+ { "version", CONF_RES_VERSION },
{ "", CONFIG_UNKNOWN }
};
peerkey |= RESM_NTPONLY;
break;
+ case CONF_RES_VERSION:
+ peerversion |= RES_VERSION;
+ break;
+
case CONF_RES_LIMITED:
peerversion |= RES_LIMITED;
break;