Translate 32-bit ifmedia requests into native ones.

Description

Translate 32-bit ifmedia requests into native ones.

We use transformation rather than accessors as virtually ever driver
implements SIOCGIFMEDIA and all would have to be touched.

Keep the code readable by always performing copies and (possiably no-op)
transforms.

Reviewed by: jhb, kib
Obtained from: CheriBSD
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14996

Details

Committed
brooksApr 25 2018, 3:30 PM
Reviewer
jhb
Differential Revision
D14996: Translate 32-bit ifmedia requests into native ones.
Parents
rS332996: Make it possible (controlled via sysctl, enabled by default) to mark
Branches
Unknown
Tags
Unknown