Page MenuHomeFreeBSD

netdump: Fix 11 compatibility DIOCSKERNELDUMP ioctl
ClosedPublic

Authored by cem on Apr 20 2019, 3:25 AM.
Tags
None
Referenced Files
F82141963: D19980.id56416.diff
Thu, Apr 25, 9:41 PM
F82141939: D19980.id56431.diff
Thu, Apr 25, 9:41 PM
F82141815: D19980.id.diff
Thu, Apr 25, 9:39 PM
F82141438: D19980.diff
Thu, Apr 25, 9:34 PM
Unknown Object (File)
Dec 22 2023, 11:27 PM
Unknown Object (File)
Dec 1 2023, 1:42 PM
Unknown Object (File)
Sep 14 2023, 2:32 AM
Unknown Object (File)
Sep 14 2023, 1:30 AM

Details

Summary

The logic was present for the 11 version of the DIOCSKERNELDUMP ioctl, but
had not been updated for the 12 ABI.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 20 2019, 10:38 AM
This revision was automatically updated to reflect the committed changes.

Now a kernel configuration without COMPAT_FREEBSD11 generates the following errror:

`--- netdump_client.o ---
/usr/src/sys/netinet/netdump/netdump_client.c:1143:8: error: unused variable 'u' [-Werror,-Wunused-variable]

u_int u;
      ^

1 error generated.
`

head/sys/netinet/netdump/netdump_client.c
1143

Use #ifdef COMPAT_FREEBSD11 here as well.

head/sys/netinet/netdump/netdump_client.c
1143

Thanks for the catch!

LGTM.
A kernel configuration without COMPAT_FREEBSD11 is building successfully again.

This revision is now accepted and ready to land.Apr 24 2019, 7:16 AM