diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h --- a/sys/sys/ktrace.h +++ b/sys/sys/ktrace.h @@ -36,6 +36,7 @@ #include #include #include +#include #include /* diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1918,6 +1918,15 @@ printf("%.*s", (int)sizeof(sa_un.sun_path), sa_un.sun_path); break; } + case AF_NETLINK: { + struct sockaddr_nl sa_nl; + + memset(&sa_nl, 0, sizeof(sa_nl)); + memcpy(&sa_nl, sa, sa->sa_len); + printf("len: %u, pid: %u, netlink family: %u, groups: 0x%x", + sa_nl.nl_len, sa_nl.nl_pid, sa_nl.nl_family, sa_nl.nl_groups); + break; + } default: printf("unknown address family"); }