summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-22 16:02:01 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-22 16:02:01 -0700
commit7711eba297955d4cf3852f36fe7c6d118da38171 (patch)
tree28aac858e0f6792ffae85a01d74793c10694ea08 /osdep
parent1bc451ed10b43e7c1113c9d8129ad468821ab0cb (diff)
downloadinfinitytier-7711eba297955d4cf3852f36fe7c6d118da38171.tar.gz
infinitytier-7711eba297955d4cf3852f36fe7c6d118da38171.zip
More cluster wiring...
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Phy.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp
index 7f790e5d..6737034e 100644
--- a/osdep/Phy.hpp
+++ b/osdep/Phy.hpp
@@ -64,6 +64,12 @@
#include <netinet/in.h>
#include <netinet/tcp.h>
+#if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux)
+#ifndef IPV6_DONTFRAG
+#define IPV6_DONTFRAG 62
+#endif
+#endif
+
#define ZT_PHY_SOCKFD_TYPE int
#define ZT_PHY_SOCKFD_NULL (-1)
#define ZT_PHY_SOCKFD_VALID(s) ((s) > -1)
@@ -375,6 +381,9 @@ public:
#ifdef IPV6_MTU_DISCOVER
f = 0; setsockopt(s,IPPROTO_IPV6,IPV6_MTU_DISCOVER,&f,sizeof(f));
#endif
+#ifdef IPV6_DONTFRAG
+ f = 0; setsockopt(s,IPPROTO_IPV6,IPV6_DONTFRAG,&f,sizeof(f));
+#endif
}
f = 0; setsockopt(s,SOL_SOCKET,SO_REUSEADDR,(void *)&f,sizeof(f));
f = 1; setsockopt(s,SOL_SOCKET,SO_BROADCAST,(void *)&f,sizeof(f));