aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>2013-02-22 12:39:50 +0900
committerStefan Hajnoczi <stefanha@redhat.com>2013-03-04 09:54:17 +0100
commit2f52555e93636116c41de9732e114b17f82b8ee9 (patch)
treeb9f580b51b5c0983d435b5b122849361340051f5
parentaf3f4e7aa417f88b9884f49ebddcf1343c2b1c85 (diff)
downloadslirp-2f52555e93636116c41de9732e114b17f82b8ee9.zip
slirp-2f52555e93636116c41de9732e114b17f82b8ee9.tar.gz
slirp-2f52555e93636116c41de9732e114b17f82b8ee9.tar.bz2
move socket_set_nodelay to osdep.c
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--tcp_subr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tcp_subr.c b/tcp_subr.c
index 636b0a9..9c93612 100644
--- a/tcp_subr.c
+++ b/tcp_subr.c
@@ -429,8 +429,7 @@ void tcp_connect(struct socket *inso)
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&opt, sizeof(int));
opt = 1;
setsockopt(s, SOL_SOCKET, SO_OOBINLINE, (char *)&opt, sizeof(int));
- opt = 1;
- setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *)&opt, sizeof(int));
+ socket_set_nodelay(s);
so->so_fport = addr.sin_port;
so->so_faddr = addr.sin_addr;