• Christophe Massiot's avatar
    Use SO_BINDTODEVICE to bind to a specific interface. · 0564613d
    Christophe Massiot authored
    Under Linux, the socket will receive all packets for a given multicast
    address, from any interface, even if the interface address is specified.
    SO_BINDTODEVICE requires the CAP_NET_ADMIN capability.
    
    Patch courtesy of Benjamin Cohen bcohen AT openheadend DOT tv.
    0564613d
util.c 37.1 KB