Subject: Re: sendto: Invalid argument - help!
To: Hubert Feyrer <>
From: Dennis Ferguson <>
List: tech-net
Date: 01/03/1999 18:38:07
> trying sendto(4, packet, 28, 0,, 16)sendto in send_ip_raw:
> sendto(4, packet, 28, 0,, 16) => Invalid argument
> There seems to be an endianness problem somewhere, but I really don't have

Leave the packet length in the IP header (i.e. ip->ip_len) and the
fragment offset (i.e. ip->ip_off) in host byte order.  BSD boxes do it
this way, Linux does it the other (more sensible) way.

Dennis Ferguson