HomeFreeBSD

linux(4): Add a helper to copyout getsockopt value

Description

linux(4): Add a helper to copyout getsockopt value

For getsockopt(), optlen is a value-result argument, which is modified
on return to indicate the actual size of the value returned.
For some cases this was missed, fixed.

MFC after: 2 weeks

Details

Provenance
dchaginAuthored on May 28 2022, 8:30 PM
Parents
rG3a99aac66f8d: linux(4): Check the socket before any others sanity checks
Branches
Unknown
Tags
Unknown