[Bug 181741] [kernel] [patch] Packet loss when 'control' messages are present with large data (sendmsg(2))

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jul 25 20:49:59 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=181741

--- Comment #18 from Mark Johnston <markj at FreeBSD.org> ---
(In reply to Mark Johnston from comment #17)
> since sosend_generic() already puts a hard bound on the size of control messages, I don't see why it needs to go through the trouble of performing an exact check.

To be clear, I'm saying that given a control message of size S, the amount of
occupied buffer space is some linear function of S plus a constant (the size of
a sockcred, if LOCAL_CREDS is configured).  Given that we have a bound on S
imposed by sosend_generic(), I don't think it's important to compute the exact
amount of buffer space required for the internalized form of the messages.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list