Disable Path MTU discovery on per socket on OS X

Viewed 762

Is there a way to disable Path MTU discovery on per socket basis on OS X?

This is how to set don't fragment bit on socket on Linux

But IP_MTU_DISCOVER is not recognized on OS X.

Only recognized options as per netinet/in.h on OS X are:

/*
 * Options for use with [gs]etsockopt at the IP level.
 * First word of comment is data type; bool is stored in int.
 */
#define IP_OPTIONS      1    /* buf/ip_opts; set/get IP options */
#define IP_HDRINCL      2    /* int; header is included with data */
.....
0 Answers
Related