Page MenuHomeFreeBSD

netdump: Fix 11 compatibility DIOCSKERNELDUMP ioctl
ClosedPublic

Authored by cem on Apr 20 2019, 3:25 AM.
Tags
None
Referenced Files
F170540229: D19980.id56431.diff
Sat, Sep 5, 7:51 AM
F170515134: D19980.id56416.diff
Sat, Sep 5, 4:45 AM
F170506860: D19980.diff
Sat, Sep 5, 3:48 AM
Unknown Object (File)
Fri, Sep 4, 12:24 AM
Unknown Object (File)
Thu, Sep 3, 11:22 AM
Unknown Object (File)
Thu, Sep 3, 10:49 AM
Unknown Object (File)
Thu, Sep 3, 10:25 AM
Unknown Object (File)
Wed, Sep 2, 12:35 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