]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: decode protocol numbers of RAW and RAW6 sockets
authorMasatake YAMATO <yamato@redhat.com>
Fri, 3 Jan 2025 18:50:01 +0000 (03:50 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Wed, 20 Aug 2025 12:11:21 +0000 (21:11 +0900)
commit2e45f542dbf9a4bb19b804ae98e3ba7742595012
treebe8a0b979743a9c57bcedb42c1b0a27fee55a81b
parent643bdae8e38055e36acf2963c3416de206081507
lsfd: decode protocol numbers of RAW and RAW6 sockets

NOTE: this chage breaks compatibility of existing -Q expression used
in a shell script; the data type of RAW.PROTOCOL has changed from
<number> to <string>.

With this change, lsfd decodes RAW.PROTOCOL with a built-in table
based on linux/in.h and getprotobynumber(3) that may refer to
/etc/protocols internally.

In addition, this change adds RAW.PROTOCOL.RAW column that holds
the original protocol numbers.

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-raw
tests/expected/lsfd/mkfds-raw6
tests/ts/lsfd/mkfds-raw
tests/ts/lsfd/mkfds-raw6