VirtualBox

Changeset 478 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 31, 2007 10:31:02 PM (18 years ago)
Author:
vboxsync
Message:

upstream: set TCP_NODELAY option

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/tcp.h

    r1 r478  
    121121/*
    122122 * User-settable options (used with setsockopt).
     123 *
     124 * We don't use the system headers on unix because we have conflicting
     125 * local structures. We can't avoid the system definitions on Windows,
     126 * so we undefine them.
    123127 */
    124 /* #define      TCP_NODELAY     0x01 */ /* don't delay send to coalesce packets */
     128#undef TCP_NODELAY
     129#define TCP_NODELAY     0x01    /* don't delay send to coalesce packets */
     130#undef TCP_MAXSEG
    125131/* #define      TCP_MAXSEG      0x02 */ /* set maximum segment size */
    126132
  • trunk/src/VBox/Devices/Network/slirp/tcp_subr.c

    r1 r478  
    504504        opt = 1;
    505505        setsockopt(s,SOL_SOCKET,SO_OOBINLINE,(char *)&opt,sizeof(int));
    506        
     506        opt = 1;
     507        setsockopt(s,IPPROTO_TCP,TCP_NODELAY,(char *)&opt,sizeof(int));
     508
    507509        so->so_fport = addr.sin_port;
    508510        so->so_faddr = addr.sin_addr;
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