On Fri, Feb 28, 2003 at 11:05:32AM -0800, Jeffrey Hsu wrote:
> > Note that the IP length field must be in host byte order
>
> Historically, BSD-derived systems have always had the length and offset fields
> in host byte order.
>
... as demonstrated in the ip(4) manpage's decription of the
IP_HD
> Note that the IP length field must be in host byte order
Historically, BSD-derived systems have always had the length and offset fields
in host byte order.
Jeffrey
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebs
Hi
Does anyone know why this behaviour is not a bug?
sock_raw = socket(PF_INET, SOCK_RAW, IPPROTO_RAW);
optval = 1;
setsockopt(sock_raw, IPPROTO_IP, IP_HDRINCL, (char *)&optval, sizeof(optval));
peer.sin_family = AF_INET;
peer.sin_addr.s_addr = (CAST_HDR(packet))->dest;
peer.sin_port = (CAST_UDP(