aboutsummaryrefslogtreecommitdiff
path: root/slirp/tcp_subr.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-06-24 14:42:29 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-29 08:52:46 -0500
commit4a82347a470eb087b2cb3075c506c42051d20230 (patch)
tree215247d6af8afd1c0d01f4a7622abd913395c045 /slirp/tcp_subr.c
parent9c12a6f24d8bfd0e0d81a4a77f515e32d15547c1 (diff)
slirp: Mark sockets of incoming TCP connections
Required for pretty-printing. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/tcp_subr.c')
-rw-r--r--slirp/tcp_subr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/tcp_subr.c b/slirp/tcp_subr.c
index 6fa4223a4e..219f1dd005 100644
--- a/slirp/tcp_subr.c
+++ b/slirp/tcp_subr.c
@@ -483,6 +483,7 @@ tcp_connect(struct socket *inso)
/* if it's not FACCEPTONCE, it's already NOFDREF */
}
so->s = s;
+ so->so_state |= SS_INCOMING;
so->so_iptos = tcp_tos(so);
tp = sototcpcb(so);