mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:19:05 +02:00
take pointer of optValue and not actual optValue
This commit is contained in:
parent
a25ef58247
commit
06a976041b
1 changed files with 2 additions and 2 deletions
|
@ -112,10 +112,10 @@ QUdpSocket& LimitedNodeList::getDTLSSocket() {
|
||||||
int socketHandle = _dtlsSocket->socketDescriptor();
|
int socketHandle = _dtlsSocket->socketDescriptor();
|
||||||
#if defined(IP_DONTFRAG)
|
#if defined(IP_DONTFRAG)
|
||||||
int optValue = 1;
|
int optValue = 1;
|
||||||
setsockopt(socketHandle, IPPROTO_IP, IP_DONTFRAG, (const void*) optValue, sizeof(optValue));
|
setsockopt(socketHandle, IPPROTO_IP, IP_DONTFRAG, reinterpret_cast<const void*>(&optValue), sizeof(optValue));
|
||||||
#elif defined(IP_MTU_DISCOVER)
|
#elif defined(IP_MTU_DISCOVER)
|
||||||
int optValue = 1;
|
int optValue = 1;
|
||||||
setsockopt(socketHandle, IPPROTO_IP, IP_MTU_DISCOVER, (const void*) optValue, sizeof(optValue));
|
setsockopt(socketHandle, IPPROTO_IP, IP_MTU_DISCOVER, reinterpret_cast<const void*>(&optValue), sizeof(optValue));
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue