1

I need to set a DONT_FRAGMENT (or analogous) flag on a udp socket. I am using OSX. Looks like DONT_FRAGMENT flag doesn't exist at all. I tried looking on Google and on SO but I only could find a solution that involves the use of raw sockets (the use of which requires administration privileges, which I don't have).

I just can't believe it is impossible to get this done.

Matteo Monti
  • 8,362
  • 19
  • 68
  • 114
  • Is it actually useful for anything? If it works at all, it turns a slower datagram into a discarded datagram. Is that really what you want? – Martin James Feb 27 '15 at 19:43
  • I can detect a discarded datagram and improve the quality of my stream of data by reducing the size of the datagrams I send right to the maximum size allowed by MTU. – Matteo Monti Feb 27 '15 at 19:45
  • http://stackoverflow.com/questions/900697/how-to-find-the-largest-udp-packet-i-can-send-without-fragmenting – willll Feb 27 '15 at 19:46
  • @willll I am really sorry but I don't get how that answer points out how to set DONT_FRAGMENT flag on osx. – Matteo Monti Feb 27 '15 at 19:51

0 Answers0