• vadimk's avatar
    ss: Use rtnl_dump_filter in handle_netlink_request · 8a4025f6
    vadimk authored
    Replaced handling netlink messages by rtnl_dump_filter
    from lib/libnetlink.c, also:
    
        - removed unused dump_fp arg;
        - added MAGIC_SEQ #define for 123456 seq id;
        - silently exit if ENOENT errno is caused for NETLINK_SOCK_DIAG proto
            in lib/libnetlink.c: rtnl_duml_filter_l(...) function. This fix
            was added in a3fd8e58 by Eric
            for misc/ss.c
    Signed-off-by: default avatarVadim Kochan <vadim4j@gmail.com>
    8a4025f6
libnetlink.c 16.5 KB