Re: NKEs on Intel-based Macs
Re: NKEs on Intel-based Macs
- Subject: Re: NKEs on Intel-based Macs
- From: Josh Graessley <email@hidden>
- Date: Thu, 3 Aug 2006 14:28:35 -0700
I don't have the details readily available at the moment. If you look
at the latest released sources, you should be able to determine the
fields that are swapped. Yes, I know those sources are for the PPC
builds. That part of the code shouldn't differ between intel and ppc.
The code should also help determine whether this occurs for inbound,
outbound, or both.
This absolutely will not affect PPC. PPC host byte order is the same
as the IP network byte order, so there is no swapping. If you are
seeing odd lengths on PPC, you are seeing something else.
-josh
On Aug 3, 2006, at 1:56 PM, David A Rowland wrote:
Could you be more specific? "a few other may be.." is vague, and it
would save time and mistakes to have it pinned down. Are the
problems all on the Intel side? Inbound and outbound? I saw some odd
looking ip lengths on my PPC/Mac.
The one big gotcha is that the stack swaps some fields in the ip
header. We missed this, so if you write an IP filter, the ip length
and a few other fields may be in host byte order instead of network
byte order. Some other functions, such as those that calculate
checksums, expect the data to be in network byte order. So...if you
run in to some weirdness, check the byte order.
-josh
On Aug 3, 2006, at 6:41 AM, Peter Lovell wrote:
I'm about to convert an application for Intel-based Macs and would
like
comments and suggestions about "gotchas", if any, with the
transition.
There are the standard Xcode and little-endian things, of course. No
surprise there.
But are there other differences I need to look at? I'm working at
the
socket level, not down with hardware, so I suspect that above many
of
the differences.
Although we don't have kernel sources, I'd expect that the PPC
kernel
code is the same as that for Intel and I can use PPC for
reference. Can
someone at Apple comment if it's "close enough" for NKEs.
THanks.....Peter
_______________________________________________
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
Attachment converted: Savitri:smime 19.p7s ( / ) (0041608F)
_______________________________________________
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
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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