• Lon Hohberger's avatar
    dlm: bind connections from known local address when using TCP · 6bd8feda
    Lon Hohberger authored
    A common problem occurs when multiple IP addresses within the same
    subnet are assigned to the same NIC.  If we make a connection attempt to
    another address on the same subnet as one of those addresses, the
    connection attempt will not necessarily be routed from the address we
    want.
    
    In the case of the DLM, the other nodes will quickly drop the connection
    attempt, causing problems.
    
    This patch makes the DLM bind to the local address it acquired from the
    cluster manager when using TCP prior to making a connection, obviating
    the need for administrators to "fix" their systems or use clever routing
    tricks.
    Signed-off-by: default avatarLon Hohberger <lhh@redhat.com>
    Signed-off-by: default avatarPatrick Caulfield <pcaulfie@redhat.com>
    Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
    6bd8feda
lowcomms.c 36 KB