Date: Sun, 19 Aug 2001 23:16:04 -0700 (PDT) From: Kris Kennaway <kris@FreeBSD.org> 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 Message-ID: <200108200616.f7K6G4N66537@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <stevew@best.com> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108200616.f7K6G4N66537>