]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rework compat shims in ifioctl().
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 5 May 2021 20:58:23 +0000 (13:58 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 5 May 2021 20:58:23 +0000 (13:58 -0700)
commitd17e0940f79fd96a2bf27413c1fe682dd8ee5bac
tree81dab0900b692cd503403711f47023ee0b6ac55a
parenta512d0ab009eedf2f1876fce86d6386bfee626d8
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
sys/net/if.c