• Johny Mattsson's avatar
    Fix to do TCP port number randomization at boot. · f82415f6
    Johny Mattsson authored
    This addresses the issue where a server would otherwise reject a valid
    connection attempt from a rebooted node, due to the server thinking that
    packet belonged to a recently closed session. By starting off the local
    TCP port numbers at random* points each boot the risk of port reuse
    across a reboot is significantly reduced.
    
    *) As random as can be had via the lower 12 bits of the ccounter.
    f82415f6
tcp.c 53.5 KB