]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: add UNIX.IPEER column
authorMasatake YAMATO <yamato@redhat.com>
Sun, 9 Mar 2025 22:26:49 +0000 (07:26 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Fri, 14 Mar 2025 21:51:45 +0000 (06:51 +0900)
commit44de6a5e52c2bff9651a245cc81e4b01879cab58
tree35e528e7108250b528a804b430c8d1f15e855e57
parent4d123ede99fa527c586224f00fe7a4db8c52c43b
lsfd: add UNIX.IPEER column

An example output:

    # ./lsfd -Q 'TYPE == "UNIX" && SOCK.TYPE == "dgram"' \
             -oCOMMAND,PID,TYPE,INODE,UNIX.IPEER,NAME | head

    COMMAND             PID TYPE   INODE UNIX.IPEER NAME
    systemd               1 UNIX    3239      13482 state=connected type=dgram
    systemd               1 UNIX 1649064    1649065 state=connected type=dgram
    systemd               1 UNIX 1649065    1649064 state=connected type=dgram
    systemd               1 UNIX   13465          0 state=connected path=/run/systemd/notify type=dgram
    ...

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
lsfd-cmd/lsfd.1.adoc
lsfd-cmd/lsfd.c
lsfd-cmd/lsfd.h
lsfd-cmd/sock-xinfo.c
tests/expected/lsfd/mkfds-unix-dgram-UNIX.IPEEER-column [new file with mode: 0644]
tests/ts/lsfd/mkfds-unix-dgram