HomeFreeBSD

truss: track Netlink socket protocols

Description

truss: track Netlink socket protocols

Record the Netlink protocol associated with AF_NETLINK sockets when
they are created and pass it to libsysdecode during message decoding.

Use the protocol to distinguish between Generic Netlink and Route
Netlink sockets, ensuring that Generic Netlink decoding is only
performed for NETLINK_GENERIC sockets.

Signed-off-by: Ishan Agrawal <iagrawal9990@gmail.com>
Reviewed by: kp
Sponsored-by : Google LLC (GSoC 2026)

Details

Provenance
iagrawal9990_gmail.comAuthored on Jul 4 2026, 3:40 AM
kpCommitted on Jul 5 2026, 2:03 PM
Parents
rG4efbcf36a0d4: libc locale/localeconv.c: use release semantic when clearing locale_changed
Branches
Unknown
Tags
Unknown