diff options
author | fredb <fredb> | 2001-07-12 16:24:58 +0000 |
---|---|---|
committer | fredb <fredb> | 2001-07-12 16:24:58 +0000 |
commit | 5c124963a46dcc1bbfc8f797cec1f30e019322b3 (patch) | |
tree | b35d98749f18c003b6174f82feab73f2c9be14a5 /net/ntp4/patches | |
parent | 451c6e523d12bafbcf914413cd806468b42e3f37 (diff) | |
download | pkgsrc-5c124963a46dcc1bbfc8f797cec1f30e019322b3.tar.gz |
Update to latest release candidate, ntp-4.0.99m-rc3. Continued
refinements since 4.0.99k, a new feature -- an experimental
"huff-n-puff" filter (optionally enabled in /etc/ntp.conf) -- which
discards samples with the highest delays, and new drivers for:
Forum Graphic GPS, WWV/H, Heath GC-100 II, HOPF serial and PCI,
ONCORE, ulink331.
Drop the packages's requirement for GNU readline. It turns out
that command line editing in "ntpq" is not all that useful, as
you can alway let your shell recall "ntpq -c <command>".
Diffstat (limited to 'net/ntp4/patches')
-rw-r--r-- | net/ntp4/patches/patch-aa | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/net/ntp4/patches/patch-aa b/net/ntp4/patches/patch-aa deleted file mode 100644 index b561b273854..00000000000 --- a/net/ntp4/patches/patch-aa +++ /dev/null @@ -1,29 +0,0 @@ -$NetBSD: patch-aa,v 1.3 2001/04/06 15:21:06 fredb Exp $ - ---- ntpd/ntp_control.c 2000/04/22 14:53:15 1.1.1.2 -+++ ntpd/ntp_control.c 2001/04/05 09:45:27 1.1.1.2.4.1 -@@ -1812,9 +1812,22 @@ - while (cp < reqend && - isspace((int)*cp)) - cp++; -- while (cp < reqend && *cp != -- ',') -+ while (cp < reqend && *cp != ',') { - *tp++ = *cp++; -+ if (tp >= -+ buf + sizeof(buf) - 1) { -+#if 0 /* don't syslog for now - DoS potential on filling syslog */ -+ msyslog(LOG_WARNING, -+ "Attempted \"ntpdx\" exploit from IP %d.%d.%d.%d:%d (possibly spoofed)\n", -+ (ntohl(rmt_addr->sin_addr.s_addr) >> 24) & 0xff, -+ (ntohl(rmt_addr->sin_addr.s_addr) >> 16) & 0xff, -+ (ntohl(rmt_addr->sin_addr.s_addr) >> 8) & 0xff, -+ (ntohl(rmt_addr->sin_addr.s_addr) >> 0) & 0xff, -+ ntohs(rmt_addr->sin_port)); -+#endif -+ return (0); -+ } -+ } - if (cp < reqend) - cp++; - *tp = '\0'; |