]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linux(4): Improve netlink diagnostics
authorConrad Meyer <cem@FreeBSD.org>
Tue, 3 Nov 2020 19:50:42 +0000 (19:50 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Tue, 3 Nov 2020 19:50:42 +0000 (19:50 +0000)
commit9e47480e94c86fef6f50bf40dde4db766eeeddee
treeb95cc0a342a989d0d36ee4bbec2c0f14dd7092de
parent19647e76fcafec19f6f1c4781c26bf058e0850e9
linux(4): Improve netlink diagnostics

Add some missing netlink_family definitions and produce vaguely
human-readable error messages for those definitions, like we used to do for
just ROUTE and KOBJECT_UEVENTS.

Additionally, if we know it's a netfilter socket but didn't find it in the
table, fall back to printing that instead of the generic handler ("socket
domain 16, ...").

No change to the emulator correctness, just mildly improved diagnostics for
gaps.
sys/compat/linux/linux.h
sys/compat/linux/linux_socket.c