add a missing bracket to IP_DONTFRAG

This commit is contained in:
Stephen Birarda 2014-04-16 12:02:02 -07:00
parent afcb542bbe
commit 505145f693

View file

@ -112,7 +112,7 @@ QUdpSocket& LimitedNodeList::getDTLSSocket() {
int socketHandle = _dtlsSocket->socketDescriptor();
#if defined(IP_DONTFRAG)
int optValue = 1;
setsockopt(socketHandle, IPPROTO_IP, IP_DONTFRAG, reinterpret_cast<const void*>(&optValue, sizeof(optValue));
setsockopt(socketHandle, IPPROTO_IP, IP_DONTFRAG, reinterpret_cast<const void*>(&optValue), sizeof(optValue));
#elif defined(IP_MTU_DISCOVER)
int optValue = 1;
setsockopt(socketHandle, IPPROTO_IP, IP_MTU_DISCOVER, reinterpret_cast<const void*>(&optValue), sizeof(optValue));