]> git.proxmox.com Git - qemu.git/commit
Fix forcing multicast msgs to loopback on OpenBSD.
authorBrad <brad@comstyle.com>
Sun, 7 Aug 2011 11:06:43 +0000 (11:06 +0000)
committerJustin M. Forbes <jforbes@redhat.com>
Wed, 31 Aug 2011 20:08:26 +0000 (15:08 -0500)
commit2af86a2ff7a3c5f6afabc258fc2dd5f41411b3bf
tree369b0bb64788e092d1a1e6912174c80b94712eea
parente62ad8314a52ce155cff07d105e50e565b9f1ea6
Fix forcing multicast msgs to loopback on OpenBSD.

Fix forcing multicast msgs to loopback on OpenBSD.
e.g.
$ sudo qemu -m 128 -no-fd-bootchk \
        -hda virtual.img -boot n -nographic \
        -net nic,vlan=0,model=rtl8139,macaddr=52:54:00:12:34:03 \
        -net user -tftp /usr/src/sys/arch/i386/compile/TEST -bootp pxeboot \
        -net nic,vlan=1,model=rtl8139,macaddr=52:54:00:23:03:01 \
        -net tap,vlan=1,script=no \
        -net nic,vlan=3,model=rtl8139,macaddr=52:54:00:23:03:03 \
        -net socket,vlan=3,mcast=230.0.0.1:10003
setsockopt(SOL_IP, IP_MULTICAST_LOOP): Invalid argument
qemu: -net socket,vlan=3,mcast=230.0.0.1:10003: Device 'socket' could not be initialized

Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
net/socket.c