summaryrefslogtreecommitdiff
path: root/src/serv.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-20 19:47:01 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-20 19:47:01 +0100
commit401abd106f77fbfbb166535951f1a29b8caf3775 (patch)
tree1cf9c6ad20146c73237af50af3e99186edca0a13 /src/serv.c
parent67f4dba6e394b599a1958db8d5c414d401e43382 (diff)
downloadgnutls-401abd106f77fbfbb166535951f1a29b8caf3775.tar.gz
use IP_DONTFRAG if it is defined.
Diffstat (limited to 'src/serv.c')
-rw-r--r--src/serv.c4
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)
{