diff options
author | MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp> | 2013-02-22 12:39:50 +0900 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-03-04 09:54:17 +0100 |
commit | 2f52555e93636116c41de9732e114b17f82b8ee9 (patch) | |
tree | b9f580b51b5c0983d435b5b122849361340051f5 | |
parent | af3f4e7aa417f88b9884f49ebddcf1343c2b1c85 (diff) | |
download | slirp-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |