Changeset 20244 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Jun 4, 2009 4:24:02 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tcp_subr.c
r20164 r20244 456 456 socklen_t addrlen = sizeof(struct sockaddr_in); 457 457 struct tcpcb *tp; 458 int s, opt, status; 458 int s, opt; 459 int status; 459 460 socklen_t optlen; 460 461 static int cVerbose = 1; … … 517 518 if (cVerbose > 0) 518 519 LogRel(("NAT: old socket rcv size: %dKB\n", opt / 1024)); 519 opt *= 4; 520 /* @todo (r-vvl) make it configurable (via extra data) */ 521 opt = 64 * _1K; 520 522 status = setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&opt, sizeof(int)); 521 523 if (status < 0) … … 533 535 if (cVerbose > 0) 534 536 LogRel(("NAT: old socket snd size: %dKB\n", opt / 1024)); 535 opt *= 4;537 opt = 64 * _1K; 536 538 status = setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&opt, sizeof(int)); 537 539 if (status < 0)
Note:
See TracChangeset
for help on using the changeset viewer.