]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
unix/dgram: bump maximum datagram size limit to 8k
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 1 Dec 2023 23:37:29 +0000 (15:37 -0800)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 1 Dec 2023 23:37:29 +0000 (15:37 -0800)
commitbe7c095ac99ad29fd72b780c7d58949a38656c66
tree1af9b5dc0492fc0f8a03bd8bcaa4db54e3587adc
parent9fb914634eff85b3b36bcbf39c1faf2967b0aa9e
unix/dgram: bump maximum datagram size limit to 8k

This is important for wpa_supplicant operation on a crowded network.

Note: we actually need an API to increase maximum datagram size on a
socket.  Previously SO_SNDBUF magically acted like that, but that was
an undocumented "feature".

Also move the comment to the proper line.  Previously it was the receive
buffer that imposed the limit.  Now notion of buffer size and maximum
datagram are separate.

Reviewed by: bz, tuexen, karels
Differential Revision: https://reviews.freebsd.org/D42830
PR: 274990
sys/kern/uipc_usrreq.c