diff options
Diffstat (limited to 'src/serv.c')
-rw-r--r-- | src/serv.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/serv.c b/src/serv.c index 9c868ea818..633543c937 100644 --- a/src/serv.c +++ b/src/serv.c @@ -729,15 +729,17 @@ listen_socket (const char *name, int listen_port, int socktype) continue; } } +#ifdef IP_DONTFRAG else { yes = 1; - if (setsockopt (s, IPPROTO_IP, IP_DF, + if (setsockopt (s, IPPROTO_IP, IP_DONTFRAG, (const void *) &yes, sizeof (yes)) < 0) { perror ("setsockopt(IP_DF) failed"); } } +#endif if (bind (s, ptr->ai_addr, ptr->ai_addrlen) < 0) { |