Skip to content
  • Mike Ryan's avatar
    net/sock: option to specify local address · 3a75e74c
    Mike Ryan authored
    
    
    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: default avatarMike Ryan <mikeryan@ISI.EDU>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    3a75e74c