Searched refs:maxsockbuf (Results 1 – 1 of 1) sorted by relevance
1056 static int maxsockbuf = -1; in NET_SetSockOpt() local1058 static long maxsockbuf = -1; in NET_SetSockOpt() local1184 if (maxsockbuf == -1) { in NET_SetSockOpt()1188 rlen = sizeof(maxsockbuf); in NET_SetSockOpt()1189 if (sysctl(mib, 3, &maxsockbuf, &rlen, NULL, 0) == -1) in NET_SetSockOpt()1190 maxsockbuf = 1024; in NET_SetSockOpt()1196 maxsockbuf = (maxsockbuf/5)*4; in NET_SetSockOpt()1200 maxsockbuf = SB_MAX; in NET_SetSockOpt()1202 maxsockbuf = 64 * 1024; /* XXX: NetBSD */ in NET_SetSockOpt()1206 if (*bufsize > maxsockbuf) { in NET_SetSockOpt()[all …]