diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-05 17:32:07 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-03-05 17:32:07 +0100 |
commit | 19431ba192c3b95726c7297c96494ba6397879ef (patch) | |
tree | 0ccb55c32271a24f8d6de77432ad9a2be4447f11 | |
parent | 215021e3e2de93daa7ddaa94a16d6cbfc2982165 (diff) | |
download | dabmux-19431ba192c3b95726c7297c96494ba6397879ef.tar.gz dabmux-19431ba192c3b95726c7297c96494ba6397879ef.tar.bz2 dabmux-19431ba192c3b95726c7297c96494ba6397879ef.zip |
Replace SOL_IP by more portable IPPROTO_IP
-rw-r--r-- | src/UdpSocket.cpp | 2 |
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"); } |