Increase the default size of some receive buffers from 8k to 16k.

This mitigates recent reports of socket overflow errors
and fixes PR bin/53247.
This commit is contained in:
roy 2018-05-11 09:43:59 +00:00
parent e11b542616
commit 0cac5dca10
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uipc_usrreq.c,v 1.185 2018/05/05 19:58:08 christos Exp $ */
/* $NetBSD: uipc_usrreq.c,v 1.186 2018/05/11 09:43:59 roy Exp $ */
/*-
* Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@ -96,7 +96,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.185 2018/05/05 19:58:08 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.186 2018/05/11 09:43:59 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@ -680,7 +680,7 @@ uipc_ctloutput(int op, struct socket *so, struct sockopt *sopt)
u_long unpst_sendspace = PIPSIZ;
u_long unpst_recvspace = PIPSIZ;
u_long unpdg_sendspace = 2*1024; /* really max datagram size */
u_long unpdg_recvspace = 4*1024;
u_long unpdg_recvspace = 16*1024;
u_int unp_rights; /* files in flight */
u_int unp_rights_ratio = 2; /* limit, fraction of maxfiles */

View File

@ -1,4 +1,4 @@
/* $NetBSD: raw_cb.h,v 1.28 2017/09/25 01:56:22 ozaki-r Exp $ */
/* $NetBSD: raw_cb.h,v 1.29 2018/05/11 09:43:59 roy Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -57,7 +57,7 @@ struct rawcb {
* Nominal space allocated to a raw socket.
*/
#define RAWSNDQ 8192
#define RAWRCVQ 8192
#define RAWRCVQ 16384
LIST_HEAD(rawcbhead, rawcb);

View File

@ -1,4 +1,4 @@
/* $NetBSD: in6_proto.c,v 1.124 2018/05/03 07:13:48 maxv Exp $ */
/* $NetBSD: in6_proto.c,v 1.125 2018/05/11 09:43:59 roy Exp $ */
/* $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $ */
/*
@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.124 2018/05/03 07:13:48 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.125 2018/05/11 09:43:59 roy Exp $");
#ifdef _KERNEL_OPT
#include "opt_gateway.h"
@ -594,7 +594,7 @@ int pmtu_expire = 60*10;
* Nominal space allocated to a raw ip socket.
*/
#define RIPV6SNDQ 8192
#define RIPV6RCVQ 8192
#define RIPV6RCVQ 16384
u_long rip6_sendspace = RIPV6SNDQ;
u_long rip6_recvspace = RIPV6RCVQ;