• Jon Maloy's avatar
    tipc: fix correct setting of message type in second discoverer · 92018c7c
    Jon Maloy authored
    The duplicate address discovery protocol is not safe against two
    discoverers running in parallel. The one executing first after the
    trial period is over will set the node address and change its own
    message type to DSC_REQ_MSG. The one executing last may find that the
    node address is already set, and never change message type, with the
    result that its links may never be established.
    
    In this commmit we ensure that the message type always is set correctly
    after the trial period is over.
    
    Fixes: 25b0b9c4 ("tipc: handle collisions of 32-bit node address hash values")
    Signed-off-by: default avatarJon Maloy <jon.maloy@ericsson.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    92018c7c
discover.c 12.5 KB