Page MenuHomeFreeBSD

netdump: Fix 11 compatibility DIOCSKERNELDUMP ioctl
ClosedPublic

Authored by cem on Apr 20 2019, 3:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 1, 8:28 PM
Unknown Object (File)
Wed, May 1, 6:05 PM
Unknown Object (File)
Wed, May 1, 6:05 PM
Unknown Object (File)
Wed, May 1, 12:52 PM
Unknown Object (File)
Thu, Apr 25, 9:41 PM
Unknown Object (File)
Thu, Apr 25, 9:41 PM
Unknown Object (File)
Thu, Apr 25, 9:39 PM
Unknown Object (File)
Thu, Apr 25, 9:34 PM

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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23781
Build 22728: arc lint + arc unit

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 ↗(On Diff #56431)

Use #ifdef COMPAT_FREEBSD11 here as well.

head/sys/netinet/netdump/netdump_client.c
1143 ↗(On Diff #56431)

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