Date: Fri, 18 Feb 2005 16:15:02 -0500 (EST) From: Andre Guibert de Bruet <andy@siliconlandmark.com> To: Doug White <dwhite@gumbysoft.com> Cc: current@freebsd.org Subject: Re: ntpdate behavior changes between 4.x, 5.x and CURRENT Message-ID: <20050218161358.L637@alpha.siliconlandmark.com> In-Reply-To: <20050218094150.T59283@carver.gumbysoft.com> References: <20050217140951.R637@alpha.siliconlandmark.com> <20050218081633.K637@alpha.siliconlandmark.com> <20050218094150.T59283@carver.gumbysoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Fri, 18 Feb 2005, Doug White wrote: > On Fri, 18 Feb 2005, Andre Guibert de Bruet wrote: > >>> ntpd 4.2.0 + patch to suppress those messages, which was obtained from the >>> upstream code. >>> >>> So the answer is "Because the vendor put it there, and we hid it again in >>> -CURRENT." >> >> Are there any plans to MFC ntpd 4.2.0? If adapting the patch for RELENG_5 >> (And 4.1.1a) would make the process any easier, could I get my mittens on >> it? > > Merging is probably not doable due to interface changes in the library, > but you can certainly figure out how to adapt the patch. You'll want to > coordinate with roberto@ on any changes since he's done the upstream > imports. How about something as simple as the attached patch? | Andre Guibert de Bruet | Enterprise Software Consultant > | Silicon Landmark, LLC. | http://siliconlandmark.com/ > [-- Attachment #2 --] --- ntpdate.c.old Tue Jul 20 11:01:41 2004 +++ ntpdate.c Fri Feb 18 15:59:13 2005 @@ -1339,7 +1339,9 @@ hints.ai_family = ai_fam_templ; hints.ai_socktype = SOCK_DGRAM; + /* printf("Looking for host %s and service %s\n", serv, service); + */ error = getaddrinfo(serv, service, &hints, &addrResult); if (error != 0) { @@ -1348,8 +1350,10 @@ return; } else { - fprintf(stderr, "host found : %s\n", stohost((struct sockaddr_storage*)addrResult->ai_addr)); - } + /* + fprintf(stderr, "host found : %s\n", stohost((struct sockaddr_storage*)addrResult->ai_addr)); + */ + } server = (struct server *)emalloc(sizeof(struct server)); memset((char *)server, 0, sizeof(struct server));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050218161358.L637>
