From owner-freebsd-bugs Thu Jun 25 14:30:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA00211 for freebsd-bugs-outgoing; Thu, 25 Jun 1998 14:30:57 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from almond.elite.net (root@almond.elite.net [205.199.220.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA29890; Thu, 25 Jun 1998 14:29:29 -0700 (PDT) (envelope-from nate@almond.elite.net) Received: (from nate@localhost) by almond.elite.net (8.8.3/ELITE) id OAA24992; Thu, 25 Jun 1998 14:29:20 -0700 (PDT) From: Nate Lawson Message-Id: <199806252129.OAA24992@almond.elite.net> Subject: Re: Apparent bug in sendto() with raw sockets To: fenner@parc.xerox.com (Bill Fenner) Date: Thu, 25 Jun 1998 14:29:18 -0700 (PDT) Cc: julian@whistle.com, fenner@parc.xerox.com, nate@elite.net, freebsd-bugs@FreeBSD.ORG, freebsd-net@FreeBSD.ORG In-Reply-To: <199806251840.LAA14290@mango.parc.xerox.com> from "Bill Fenner" at Jun 25, 98 11:40:54 am X-Mailer: ELM [version 2.4 PL25] 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 In a previous message, Bill Fenner said: >In message you w >rite: >>Why are we ... different? > >Because the original implementation of raw sockets (the patches >included with LBL's traceroute) simply exposed ip_output()'s >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. The fix was to place ip->ip_id in host order (it wasn't zero-length in the original code). Since traceroute ships as a standard utility with FreeBSD, couldn't the change to network byte order be done simultaneously, minimizing headaches? Current versions of traceroute circulating around the net also assume the proper behavior (network byte order for everything), so they should work then as well. Thanks for the help, Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message