From df23366b8c2691afbe44742b6b18dd5d12d710b8 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 14 Nov 2014 10:01:01 -0800 Subject: [PATCH] remove setsockopt calls for DTLS to pass android build --- libraries/networking/src/LimitedNodeList.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/libraries/networking/src/LimitedNodeList.cpp b/libraries/networking/src/LimitedNodeList.cpp index 0c18c82962..fb8beb452c 100644 --- a/libraries/networking/src/LimitedNodeList.cpp +++ b/libraries/networking/src/LimitedNodeList.cpp @@ -126,19 +126,6 @@ QUdpSocket& LimitedNodeList::getDTLSSocket() { // DTLS requires that IP_DONTFRAG be set // This is not accessible on some platforms (OS X) so we need to make sure DTLS still works without it -#if defined(IP_DONTFRAG) || defined(IP_MTU_DISCOVER) - qDebug() << "Making required DTLS changes to LimitedNodeList DTLS socket."; - - int socketHandle = _dtlsSocket->socketDescriptor(); -#if defined(IP_DONTFRAG) - int optValue = 1; - setsockopt(socketHandle, IPPROTO_IP, IP_DONTFRAG, reinterpret_cast(&optValue), sizeof(optValue)); -#elif defined(IP_MTU_DISCOVER) - int optValue = 1; - setsockopt(socketHandle, IPPROTO_IP, IP_MTU_DISCOVER, reinterpret_cast(&optValue), sizeof(optValue)); -#endif -#endif - qDebug() << "LimitedNodeList DTLS socket is listening on" << _dtlsSocket->localPort(); }