Commit 1658b44bf506464cc811e421ac41372ee400371a
1 parent
183b4a38
use IPPROTO_IP instead of SOL_IP
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1715 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
vl.c
... | ... | @@ -2256,7 +2256,7 @@ static int net_socket_mcast_create(struct sockaddr_in *mcastaddr) |
2256 | 2256 | |
2257 | 2257 | /* Force mcast msgs to loopback (eg. several QEMUs in same host */ |
2258 | 2258 | val = 1; |
2259 | - ret=setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, &val, sizeof(val)); | |
2259 | + ret=setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &val, sizeof(val)); | |
2260 | 2260 | if (ret < 0) { |
2261 | 2261 | perror("setsockopt(SOL_IP, IP_MULTICAST_LOOP)"); |
2262 | 2262 | goto fail; | ... | ... |