VirtualBox

Changeset 20244 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jun 4, 2009 4:24:02 AM (16 years ago)
Author:
vboxsync
Message:

NAT: fixed buffer in 64kB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r20164 r20244  
    456456    socklen_t addrlen = sizeof(struct sockaddr_in);
    457457    struct tcpcb *tp;
    458     int s, opt, status;
     458    int s, opt;
     459    int status;
    459460    socklen_t optlen;
    460461    static int cVerbose = 1;
     
    517518    if (cVerbose > 0)
    518519        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;
    520522    status = setsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&opt, sizeof(int));
    521523    if (status < 0)
     
    533535    if (cVerbose > 0)
    534536        LogRel(("NAT: old socket snd size: %dKB\n", opt / 1024));
    535     opt *= 4;
     537    opt = 64 * _1K;
    536538    status = setsockopt(s, SOL_SOCKET, SO_SNDBUF, (char *)&opt, sizeof(int));
    537539    if (status < 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette