mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
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
This commit is contained in:
parent
9fb914634e
commit
be7c095ac9
|
@ -154,8 +154,8 @@ static struct task unp_defer_task;
|
||||||
#endif
|
#endif
|
||||||
static u_long unpst_sendspace = PIPSIZ;
|
static u_long unpst_sendspace = PIPSIZ;
|
||||||
static u_long unpst_recvspace = PIPSIZ;
|
static u_long unpst_recvspace = PIPSIZ;
|
||||||
static u_long unpdg_maxdgram = 2*1024;
|
static u_long unpdg_maxdgram = 8*1024; /* support 8KB syslog msgs */
|
||||||
static u_long unpdg_recvspace = 16*1024; /* support 8KB syslog msgs */
|
static u_long unpdg_recvspace = 16*1024;
|
||||||
static u_long unpsp_sendspace = PIPSIZ; /* really max datagram size */
|
static u_long unpsp_sendspace = PIPSIZ; /* really max datagram size */
|
||||||
static u_long unpsp_recvspace = PIPSIZ;
|
static u_long unpsp_recvspace = PIPSIZ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue