ICMP packet size in host byte order on Intel Macs
ICMP packet size in host byte order on Intel Macs
- Subject: ICMP packet size in host byte order on Intel Macs
- From: "David Litwin" <email@hidden>
- Date: Tue, 28 Feb 2006 20:20:00 -0800
- Thread-topic: ICMP packet size in host byte order on Intel Macs
I am seeing a problem with ICMP socket packets having their size field
in host order on the Intel Macs.
A packet coming to a ppc mac will have a received size (from recvfrom())
of 32 and a header starting with:
45 00 00 0c ...
whereas the Intel Mac will get a packet of received size (from
recvfrom()) of 56 and a header starting with:
45 00 24 00 ...
subtracting 20 bytes from each received size to account for the packet
header, one would expect the Intel packet to be:
45 00 00 24 ...
Oddly, ping on the Intel Macs works fine, and I would have presumed this
to cause it the same trouble it is causing me. Is it possible Apple
fixed the Intel version of Ping around this, is ping doing something
different, or am I missing some information that explains all of this in
some other way?
David Litwin
BigFix
_______________________________________________
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