IP_HDRINCL fails on Intel-Mac
IP_HDRINCL fails on Intel-Mac
- Subject: IP_HDRINCL fails on Intel-Mac
- From: Stephanie Wist <email@hidden>
- Date: Thu, 28 Dec 2006 21:57:04 +0100
Hello,
I have encountered a strange problem: I'm using raw sockets (
socket(AF_INET, SOCK_RAW, IPPROTO_RAW) ) with the option IP_HDRINCL set
to 1. ( setsockopt(sock, 0, IP_HDRINCL, &one, sizeof(one) ). This works
fine for me on my Powerbook running on Jaguar and Panther, but fails on
a new MacbookPro when calling sendto() with EINVAL.
I'm pretty sure that my self-built IP-header is correct, I compared the
packet-data before sending and they were the same on the Powerbook and
the MacbookPro.
Am I overlooking something? Is the option IP_HDRINCL disabled by
purpose on the new Macs, as it is on WinXP (although the manpages state
otherwise)?
Or has anyone a functioning code snippet using raw sockets with
IP_HDRINCL on a MacbookPro?
Wondering,
- Stephanie Wist
_______________________________________________
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