• M
    net/sock: option to specify local address · 3a75e74c
    Mike Ryan 提交于
    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: NMike Ryan <mikeryan@ISI.EDU>
    Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
    3a75e74c
socket.c 17.1 KB