• Vadim Kochan's avatar
    ss: Dont show netlink and packet sockets by default · b9ea445d
    Vadim Kochan authored
    Checking by SS_CLOSE state was remowed in:
    
        (45a4770b) ss: Remove checking SS_CLOSE state for packet and netlink
    
    which is not really correct because now by default all sockets are seen
    when do 'ss'.
    
    Here is most correct fix which considers specified family.
    
    To see netlink sockets:
        ss -A netlink
    
    To see packet sockets:
        ss -A packet
    
    And ss by default will show only connected/established sockets as it
    was before all the time.
    Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
    b9ea445d
ss.c 80 KB