qemu for windows fails to use multicast socket as netdev
Bug #1744009 reported by
qihaimou
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Expired
|
Undecided
|
Unassigned |
Bug Description
My host OS is Windows 7 x64 SP1. I installed qemu for windows from https:/
qemu-system-
It stopped with error:
bind: Unknown error
qemu-system-
Using the -netdev option has the same problem:
qemu-system-
I tried many versions from https:/
To post a comment you must log in.
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 /msdn.microsoft .com/en- us/library/ windows/ desktop/ ms737550( v=vs.85) .aspx
https:/
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.