fix compatibility issue with MacOS in release 3.14 (fixes #109)

pull/43/merge
David Schweikert 8 years ago
parent 61afaff31e
commit 356e7b3a69

@ -387,12 +387,17 @@ int main( int argc, char **argv )
switch( c )
{
case 'M':
#ifdef IP_MTU_DISCOVER
{
int val = IP_PMTUDISC_DO;
if (setsockopt(s, IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val))) {
perror("setsockopt IP_MTU_DISCOVER");
}
int val = IP_PMTUDISC_DO;
if (setsockopt(s, IPPROTO_IP, IP_MTU_DISCOVER, &val, sizeof(val))) {
perror("setsockopt IP_MTU_DISCOVER");
}
}
#else
fprintf(stderr, "-M option not supported on this platform\n");
exit(1);
#endif
break;
case 't':

Loading…
Cancel
Save