From owner-freebsd-net Fri Jun 26 14:39:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA10072 for freebsd-net-outgoing; Fri, 26 Jun 1998 14:39:36 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from alpha.xerox.com (omega.Xerox.COM [13.1.64.95]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id OAA09990 for ; Fri, 26 Jun 1998 14:39:10 -0700 (PDT) (envelope-from fenner@parc.xerox.com) Received: from crevenia.parc.xerox.com ([13.2.116.11]) by alpha.xerox.com with SMTP id <40766(2)>; Fri, 26 Jun 1998 14:38:29 PDT Received: from localhost by crevenia.parc.xerox.com with SMTP id <177515>; Fri, 26 Jun 1998 14:38:24 -0700 To: Archie Cobbs cc: freebsd-net@FreeBSD.ORG Subject: Re: Apparent bug in sendto() with raw sockets In-reply-to: Your message of "Fri, 26 Jun 98 13:59:25 PDT." <199806262059.NAA01163@bubba.whistle.com> Date: Fri, 26 Jun 1998 14:38:22 PDT From: Bill Fenner Message-Id: <98Jun26.143824pdt.177515@crevenia.parc.xerox.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <199806262059.NAA01163@bubba.whistle.com> Archie Cobbs wrote: >The BPF code had a similar bug, where you would read an IP packet >and get some of the header fields reversed. This is not a bug in the code. This is a bug in the interface. The BPF interface gives you the packet as it appears on the wire, so it's a bug for BPF not to do that. The raw IP interface exposes the ip_output() interface as protocols would use it, and the demuxed protocol interface as ip_input() passes packets to protocols. If we want to change the raw IP interface to "exactly as the packet appears on the wire", then that is a change in the interface and has to be handled much more carefully than a bug fix. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message