[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1744009] Re: qemu for windows fails to use multicast s
From: |
qihaimou |
Subject: |
[Qemu-devel] [Bug 1744009] Re: qemu for windows fails to use multicast socket as netdev |
Date: |
Thu, 18 Jan 2018 09:39:17 -0000 |
When I checked the source code, I think the problem is that on Microsoft
Windows bind() can not use a multicast address.
MSDN bind() reference
https://msdn.microsoft.com/en-us/library/windows/desktop/ms737550(v=vs.85).aspx
seems to have indicated the point.
I changed the net_socket_mcast_create() in net/socket.c, make it bind to
htonl(INADDR_ANY). After compiling, it seems to work correctly.
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1744009
Title:
qemu for windows fails to use multicast socket as netdev
Status in QEMU:
New
Bug description:
My host OS is Windows 7 x64 SP1. I installed qemu for windows from
https://qemu.weilnetz.de/w64/.The version is 2.10.1,
qemu-w64-setup-20171006.exe. I run qemu with the following command:
qemu-system-x86_64.exe -net nic -net socket,mcast=234.5.5.5:6000
disk1.qcow2
It stopped with error:
bind: Unknown error
qemu-system-x86_64.exe: -net socket,mcast=234.5.5.5:6000: Device 'socket'
could not be initialized
Using the -netdev option has the same problem:
qemu-system-x86_64.exe -netdev socket,id=hostnet0,mcast=234.5.5.5:6000
-device e1000,netdev=hostnet0 disk1.qcow2
I tried many versions from https://qemu.weilnetz.de/w64/, but none of
them could work.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1744009/+subscriptions