Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 1998 09:43:28 PDT
From:      Bill Fenner <fenner@parc.xerox.com>
To:        Nate Lawson <nate@almond.elite.net>
Cc:        freebsd-bugs@FreeBSD.ORG, freebsd-net@FreeBSD.ORG
Subject:   Re: Apparent bug in sendto() with raw sockets 
Message-ID:  <199806251643.JAA13888@mango.parc.xerox.com>
In-Reply-To: Your message of "Wed, 24 Jun 1998 17:40:43 PDT." <199806250040.RAA05172@almond.elite.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
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-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806251643.JAA13888>