aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-12-18 18:02:24 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-12-18 18:02:24 +0000
commit1658b44bf506464cc811e421ac41372ee400371a (patch)
treef6eb89844c0f518816b18a034b6dab71176196c2
parent183b4a380683751911a24a06abae6c9d8d58ac86 (diff)
use IPPROTO_IP instead of SOL_IP
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1715 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 2baca1c015..21dca789a6 100644
--- a/vl.c
+++ b/vl.c
@@ -2256,7 +2256,7 @@ static int net_socket_mcast_create(struct sockaddr_in *mcastaddr)
/* Force mcast msgs to loopback (eg. several QEMUs in same host */
val = 1;
- ret=setsockopt(fd, SOL_IP, IP_MULTICAST_LOOP, &val, sizeof(val));
+ ret=setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP, &val, sizeof(val));
if (ret < 0) {
perror("setsockopt(SOL_IP, IP_MULTICAST_LOOP)");
goto fail;