From owner-freebsd-net Thu Jun 25 09:44:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA07505 for freebsd-net-outgoing; Thu, 25 Jun 1998 09:44:20 -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 JAA07401; Thu, 25 Jun 1998 09:44:06 -0700 (PDT) (envelope-from fenner@parc.xerox.com) Received: from mango.parc.xerox.com ([13.1.102.232]) by alpha.xerox.com with SMTP id <40738(1)>; Thu, 25 Jun 1998 09:43:30 PDT Received: from mango.parc.xerox.com (localhost [127.0.0.1]) by mango.parc.xerox.com (8.8.8/8.8.8) with ESMTP id JAA13888; Thu, 25 Jun 1998 09:43:29 -0700 (PDT) (envelope-from fenner@mango.parc.xerox.com) Message-Id: <199806251643.JAA13888@mango.parc.xerox.com> To: Nate Lawson cc: freebsd-bugs@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: Apparent bug in sendto() with raw sockets In-reply-to: Your message of "Wed, 24 Jun 1998 17:40:43 PDT." <199806250040.RAA05172@almond.elite.net> Date: Thu, 25 Jun 1998 09:43:28 PDT From: Bill Fenner Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Fill in the IP length field. You're writing what claims to be a zero-length packet, and the kernel doesn't think that's a good idea. The IP length field (and the IP offset, if you ever fill that in) need to be stored in host byte order, not network byte order. Linux and OpenBSD want the fields in network byte order. Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message