From yar@bsd.chem.msu.ru  Thu Dec 13 15:23:42 2001
Return-Path: <yar@bsd.chem.msu.ru>
Received: from bsd.chem.msu.ru (bsd.chem.msu.ru [195.208.208.23])
	by hub.freebsd.org (Postfix) with ESMTP id 2DA2937B416
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 13 Dec 2001 15:23:41 -0800 (PST)
Received: (from yar@localhost)
	by bsd.chem.msu.ru (8.11.6/8.11.6) id fBDNNWT89179;
	Fri, 14 Dec 2001 02:23:32 +0300 (MSK)
	(envelope-from yar)
Message-Id: <200112132323.fBDNNWT89179@bsd.chem.msu.ru>
Date: Fri, 14 Dec 2001 02:23:32 +0300 (MSK)
From: Yar Tikhiy <yar@comp.chem.msu.su>
To: FreeBSD-gnats-submit@freebsd.org
Subject: ntpd/ntpdc incompatibility across the last two versions
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32816
>Category:       bin
>Synopsis:       ntpd/ntpdc incompatibility across the last two versions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 13 15:30:00 PST 2001
>Closed-Date:    Mon Dec 17 03:27:29 PST 2001
>Last-Modified:  Mon Dec 17 03:29:58 PST 2001
>Originator:     Yar Tikhiy
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Moscow State University
>Environment:

Machine A runs ntpd and ntpdc 4.0.99b
Machine B runs ntpd and ntpdc 4.1.0-a

>Description:

If the older ntpdc is used to talk to the newer ntpd or vice versa,
a packet format error occurs.  That's while no such incompatibility
has been announced.

>How-To-Repeat:

yar@A$ ntpdc B
ntpdc> peers
***Server reports a format error in the received packet (shouldn't happen)

>Fix:

At least, document the incompatibility.
>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: Yar Tikhiy <yar@comp.chem.msu.su>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: bin/32816: ntpd/ntpdc incompatibility across the last two versions
Date: Thu, 13 Dec 2001 18:47:00 -0500 (EST)

 <<On Fri, 14 Dec 2001 02:23:32 +0300 (MSK), Yar Tikhiy <yar@comp.chem.msu.su> said:
 
 > If the older ntpdc is used to talk to the newer ntpd or vice versa,
 > a packet format error occurs.  That's while no such incompatibility
 > has been announced.
 
 ntpdc is never compatible across versions of ntpd, except by
 fortuitous coincidence.  Dave Mills has made it clear that ntpdc's
 mode 7 control messages are specific to the version of ntpd.
 
 -GAWollman
 

From: Yar Tikhiy <yar@FreeBSD.ORG>
To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/32816: ntpd/ntpdc incompatibility across the last two versions
Date: Fri, 14 Dec 2001 03:42:23 +0300

 On Thu, Dec 13, 2001 at 06:47:00PM -0500, Garrett Wollman wrote:
 > <<On Fri, 14 Dec 2001 02:23:32 +0300 (MSK), Yar Tikhiy <yar@comp.chem.msu.su> said:
 > 
 > > If the older ntpdc is used to talk to the newer ntpd or vice versa,
 > > a packet format error occurs.  That's while no such incompatibility
 > > has been announced.
 > 
 > ntpdc is never compatible across versions of ntpd, except by
 > fortuitous coincidence.  Dave Mills has made it clear that ntpdc's
 > mode 7 control messages are specific to the version of ntpd.
 
 Has he in a man page or private mail?
 
 ntpdc(8) reads:
 
      ntpdc uses NTP mode 7 packets to communicate with the NTP
      server, and hence can be used to query any compatible server
      on the network which permits it.
 
 The same page reads somewhat later:
 
      The operation of ntpdc is specific to the particular
 implementation
      of the ntpd(8) daemon and can be expected to work only with
      this and maybe some previous versions of the daemon.
 
 Looks rather ambiguous.  To my mind, the FreeBSD ntpd maintainer
 could do something about that, e.g., contact Dave Mills so he
 clarifies the issue in the man page.  The sentence "ntpdc version
 must match that of ntpd exactly" would do much better IMHO than
 the current explanation.
 
 -- 
 Yar
State-Changed-From-To: open->closed 
State-Changed-By: cjc 
State-Changed-When: Mon Dec 17 03:27:29 PST 2001 
State-Changed-Why:  
The documentation on ntpdc(8) seems pretty clear, 

The operation of ntpdc are specific to the particular implementation of 
the ntpd(8) daemon and can be expected to work only with this and maybe 
some previous versions of the daemon. 

The two versions in the PR are ones that do not play well together. 


http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32816 
>Unformatted:
