aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/UdpSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UdpSocket.cpp b/src/UdpSocket.cpp
index af26430..8ac3706 100644
--- a/src/UdpSocket.cpp
+++ b/src/UdpSocket.cpp
@@ -287,7 +287,7 @@ int UdpSocket::joinGroup(char* groupname)
#else
group.imr_address.s_addr = htons(INADDR_ANY);;
group.imr_ifindex = 0;
- if (setsockopt(listenSocket, SOL_IP, IP_ADD_MEMBERSHIP, &group, sizeof(group))
+ if (setsockopt(listenSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP, &group, sizeof(group))
== SOCKET_ERROR) {
setInetError("Can't join multicast group");
}