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() local1185 if (maxsockbuf == -1) { in NET_SetSockOpt()1189 rlen = sizeof(maxsockbuf); in NET_SetSockOpt()1190 if (sysctl(mib, 3, &maxsockbuf, &rlen, NULL, 0) == -1) in NET_SetSockOpt()1191 maxsockbuf = 1024; in NET_SetSockOpt()1197 maxsockbuf = (maxsockbuf/5)*4; in NET_SetSockOpt()1201 maxsockbuf = SB_MAX; in NET_SetSockOpt()1203 maxsockbuf = 64 * 1024; /* XXX: NetBSD */ in NET_SetSockOpt()1207 if (*bufsize > maxsockbuf) { in NET_SetSockOpt()[all …]