diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-20 19:47:01 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-20 19:47:01 +0100 |
commit | 401abd106f77fbfbb166535951f1a29b8caf3775 (patch) | |
tree | 1cf9c6ad20146c73237af50af3e99186edca0a13 /src/serv.c | |
parent | 67f4dba6e394b599a1958db8d5c414d401e43382 (diff) | |
download | gnutls-401abd106f77fbfbb166535951f1a29b8caf3775.tar.gz |
use IP_DONTFRAG if it is defined.
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) { |