• 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
Re: setting the DF bit on a UDP BSD socket in OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting the DF bit on a UDP BSD socket in OS X


  • Subject: Re: setting the DF bit on a UDP BSD socket in OS X
  • From: Ivan Beschastnikh <email@hidden>
  • Date: Thu, 13 Jul 2006 08:40:00 -0700


On Jul 11, 2006, at 5:47 PM, Peter Sichel wrote:

On 7/11/06, Ivan Beschastnikh wrote:

Hello,

I'm trying to set up a UDP socket that sends datagrams with the DF
bit set in the IP header. Looking at the 'man ip' page and a 'man
getsockopt' page it doesn't seem like you support the BSD's
IP_DONTFRAG option nor do you have an IP_MTU_DISCOVER option as on
Linux.

I looked everywhere on the web but can't find out whether you
actually support setting the DF bit on BSD sockets and if so, what is
the API for doing this. Any advice on this would be much appreciated.

You can use the IP_HDRINCL option and set the bit yourself.

result = setsockopt(mSocket, IPPROTO_IP, IP_HDRINCL, &value, sizeof(int));

Thanks for the reply, but IP_HDRINCL only works with RAW sockets. I'm looking for a way to modify the bit for a UDP socket.



thanks,

ivan.
_______________________________________________
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: setting the DF bit on a UDP BSD socket in OS X
      • From: "Peter Sichel" <email@hidden>
References: 
 >setting the DF bit on a UDP BSD socket in OS X (From: Ivan Beschastnikh <email@hidden>)
 >Re: setting the DF bit on a UDP BSD socket in OS X (From: "Peter Sichel" <email@hidden>)

  • Prev by Date: Re: O_NONBLOCK & connect() not blocking
  • Next by Date: Re: setting the DF bit on a UDP BSD socket in OS X
  • Previous by thread: Re: setting the DF bit on a UDP BSD socket in OS X
  • Next by thread: Re: setting the DF bit on a UDP BSD socket in OS X
  • Index(es):
    • Date
    • Thread