• Herbert Xu's avatar
    [IPV4/IPV6]: Fix listing of listening sockets. · ab32df90
    Herbert Xu authored
    There is a bug in listening_get_first() which used by /proc/net/tcp*
    where it wasn't looping through all the sockets in each hash chain.
    This problem doesn't show up unless the first socket in a chain doesn't
    match the family that is being looked up.
    
    The following patch fixes this by getting rid of listening_get_first()
    altogether.
    ab32df90
tcp_ipv4.c 64.3 KB