Date: Fri, 26 Jun 1998 14:38:22 PDT From: Bill Fenner <fenner@parc.xerox.com> To: Archie Cobbs <archie@whistle.com> Cc: freebsd-net@FreeBSD.ORG Subject: Re: Apparent bug in sendto() with raw sockets Message-ID: <98Jun26.143824pdt.177515@crevenia.parc.xerox.com> In-Reply-To: Your message of "Fri, 26 Jun 98 13:59:25 PDT." <199806262059.NAA01163@bubba.whistle.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98Jun26.143824pdt.177515>