From: Harlan Stenn Date: Fri, 17 Mar 2000 03:41:23 +0000 (-0000) Subject: ChangeLog, freebsd, ntp_request.c: X-Git-Tag: NTP_4_0_99_J~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f02c8fa06df34ec2a1fd2710ed47a5a4a51d24c;p=thirdparty%2Fntp.git ChangeLog, freebsd, ntp_request.c: * ntpd/ntp_request.c (dns_a): crypto_public() is only available if PUBKEY is #defined. bk: 38d1a963zpHzjtHrkqarR_Up9WDtIA --- diff --git a/ChangeLog b/ChangeLog index 2bedb09a46..e1bd360120 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * ntpd/ntp_request.c (dns_a): Call crypto_public with the resolved name and the peer pointer. + (dns_a): crypto_public() is only available if PUBKEY is #defined. * ntpd/ntp_crypto.c (crypto_public): sprintf is Evil. Use snprintf. (crypto_setup): Ditto diff --git a/html/hints/freebsd b/html/hints/freebsd new file mode 100644 index 0000000000..ef847328bb --- /dev/null +++ b/html/hints/freebsd @@ -0,0 +1,15 @@ +If you are compiling under FreeBSD and see messages in the syslogs that +indicate that the ntpd process is trying to use unavailable sched_ +calls, it means you are running a kernel that does not have the POSIX +scheduling calls enabled. + +You have two choices: + +- Ignore the messages + +- Generate a new kernel, where the kernel configuration file contains + the lines: + + options "P1003_1B" + options "_KPOSIX_PRIORITY_SCHEDULING" + options "_KPOSIX_VERSION=199309L" diff --git a/ntpd/ntp_request.c b/ntpd/ntp_request.c index cefefe6719..51e7fcf3ae 100644 --- a/ntpd/ntp_request.c +++ b/ntpd/ntp_request.c @@ -1301,7 +1301,9 @@ dns_a( req_ack(srcadr, inter, inpkt, INFO_ERR_NODATA); return; } else { +#ifdef PUBKEY crypto_public(peer, dp->hostname); +#endif /* PUBKEY */ } dp++;