From owner-cvs-all Sun Aug 19 23:16:13 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 019A437B410; Sun, 19 Aug 2001 23:16:05 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: (from kris@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7K6G4N66537; Sun, 19 Aug 2001 23:16:04 -0700 (PDT) (envelope-from kris) Message-Id: <200108200616.f7K6G4N66537@freefall.freebsd.org> From: Kris Kennaway Date: Sun, 19 Aug 2001 23:16:04 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/timed/timed readmsg.c src/usr.sbin/timed/timedc cmds.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG kris 2001/08/19 23:16:04 PDT Modified files: usr.sbin/timed/timed readmsg.c usr.sbin/timed/timedc cmds.c Log: The timed protocol is not implemented in a compatible way by all vendors; the size of the tsp_name field is OS-dependent. 4.3BSD used a 32-byte field, FreeBSD uses MAXHOSTNAMELEN and RedHat apparently uses a 64-byte field. As a result, sanity checking code added a few months ago to detect short packets will fail when interoperating with one of these other vendors. Change the short packet detection code to expect a minimum packet size corresponding to the 4.3BSD implementation, which should be a safe minimum size. Submitted by: Stephen Whiteley (based on) PR: misc/29867 Revision Changes Path 1.8 +8 -3 src/usr.sbin/timed/timed/readmsg.c 1.8 +17 -6 src/usr.sbin/timed/timedc/cmds.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message