From owner-freebsd-bugs Fri Jun 26 14:01:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA00656 for freebsd-bugs-outgoing; Fri, 26 Jun 1998 14:01:09 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA00465; Fri, 26 Jun 1998 14:00:23 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id NAA22834; Fri, 26 Jun 1998 13:59:48 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022830; Fri Jun 26 13:59:25 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id NAA01163; Fri, 26 Jun 1998 13:59:25 -0700 (PDT) From: Archie Cobbs Message-Id: <199806262059.NAA01163@bubba.whistle.com> Subject: Re: Apparent bug in sendto() with raw sockets In-Reply-To: from Niall Smart at "Jun 26, 98 02:04:38 pm" To: njs3@doc.ic.ac.uk (Niall Smart) Date: Fri, 26 Jun 1998 13:59:25 -0700 (PDT) Cc: fenner@parc.xerox.com, julian@whistle.com, nate@almond.elite.net, freebsd-bugs@FreeBSD.ORG, freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Niall Smart writes: > On Jun 25, 11:40am, Bill Fenner wrote: > } Subject: Re: Apparent bug in sendto() with raw sockets > > In message you w > > interface, which requires length and offset in host order. AFAIK, > > this original implementation happened on suns, which is why nobody > > noticed at the time. We are compatible with this original > > implementation. OpenBSD and Linux chose to change the semantics > > to the ones that are less surprising but not backwards compatible. > > I think its more important to be correct in this area, raw sockets > programming can be tricky enough without what will seem to the > user like gratuitous changes. If Linux and OpenBSD have done it, > thats all the more reason to go for it... I agree.. and there's a precedent for this. The BPF code had a similar bug, where you would read an IP packet and get some of the header fields reversed. This was fixed in FreeBSD sometime in the Summer of '96 I believe (north america, that is :-) -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message