Changeset 478 in vbox for trunk/src/VBox
- Timestamp:
- Jan 31, 2007 10:31:02 PM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/tcp.h
r1 r478 121 121 /* 122 122 * 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. 123 127 */ 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 125 131 /* #define TCP_MAXSEG 0x02 */ /* set maximum segment size */ 126 132 -
trunk/src/VBox/Devices/Network/slirp/tcp_subr.c
r1 r478 504 504 opt = 1; 505 505 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 507 509 so->so_fport = addr.sin_port; 508 510 so->so_faddr = addr.sin_addr;
Note:
See TracChangeset
for help on using the changeset viewer.