HomeFreeBSD

Rework compat shims in ifioctl().

Description

Rework compat shims in ifioctl().

Centralize logic for handling compat ioctls into two blocks of code at
the start and end of the ioctl routine. This avoids the conversion
logic being spread out both in multiple blocks in ifioctl as well as
various helper functions.

Reviewed by: brooks, kib
Obtained from: CheriBSD
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D29891

(cherry picked from commit d17e0940f79fd96a2bf27413c1fe682dd8ee5bac)

Details

Provenance
jhbAuthored on May 5 2021, 8:58 PM
Reviewer
brooks
Differential Revision
D29891: Rework compat shims in ifioctl().
Parents
rG28cfced85b64: in6: Consolidate IN6_ARE_ADDR_EQUAL definitions
Branches
Unknown
Tags
Unknown