net/sock: option to specify local address
authorMike Ryan <mikeryan@isi.edu>
Wed, 1 Dec 2010 19:16:47 +0000 (11:16 -0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 9 Dec 2010 10:45:50 +0000 (12:45 +0200)
commit7124d6f14f07031b904df7a115cb920da4c4bc7d
tree9b3b7f9f45c49a3d29d6bfb3b0d553b525942191
parent0a892257657216f9952be8cefd150c3fb68ac2e4
net/sock: option to specify local address

Add an option to specify the host IP to send multicast packets from,
when using a multicast socket for networking. The option takes an IP
address and sets the IP_MULTICAST_IF socket option, which causes the
packets to use that IP's interface as an egress.

This is useful if the host machine has several interfaces with several
virtual networks across disparate interfaces.

Signed-off-by: Mike Ryan <mikeryan@ISI.EDU>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net.c
net/socket.c
qemu-options.hx