• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
IP_HDRINCL fails on Intel-Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: IP_HDRINCL fails on Intel-Mac
      • From: "Duane Murphy" <email@hidden>
  • Prev by Date: Re: Crash inside CFFTP
  • Next by Date: Re: IP_HDRINCL fails on Intel-Mac
  • Previous by thread: Re: Crash inside CFFTP
  • Next by thread: Re: IP_HDRINCL fails on Intel-Mac
  • Index(es):
    • Date
    • Thread