Re: IP_HDRINCL fails on Intel-Mac
Re: IP_HDRINCL fails on Intel-Mac
- Subject: Re: IP_HDRINCL fails on Intel-Mac
- From: "Peter Sichel" <email@hidden>
- Date: Thu, 28 Dec 2006 16:54:15 -0500
On 12/28/06, Duane Murphy wrote:
>I have also read reports that some fields have to be swapped while
>others don't.
I've been using IP_HDRINCL successfully on Intel for a while now.
The trick is indeed which bytes to swap.
The kernel swaps the 16-bit fields in the IP header for you.
You need to keep these in host byte order while swapping the
other 32-bit fields to network byte order.
The "EINVAL" is probably the ip_header->totalLength field
which must be in host byte order.
Kind Regards,
- Peter Sichel
Sustainable Softworks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden