[Bug 206544] sendmsg(2) (sendto(2) too?) can fail with EINVAL; isn't documented in manpage

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 02 Oct 2023 23:23:43 UTC

Peter Jeremy <peterj@FreeBSD.org> changed:

           What    |Removed                     |Added
                 CC|                            |peterj@FreeBSD.org

--- Comment #7 from Peter Jeremy <peterj@FreeBSD.org> ---
I've bumped into the lack of documentation as well, though the triggers were
hidden far more deeply in the kernel:
1) An incorrect cmsg_len will typically trigger EINVAL.
2) Using IPv6-level messages (i.e. cmsg_level==IPPROTO_IPV6) with at
IPv4-mapped IPv6 connection will trigger EINVAL in at least some cases.

This appears to be a duplicate of bug 99356.  I won't close it as a duplicate
because there's different analysis in both bugs.

You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.