From 6dd5ffb661a4aec28c8296b1673abdf280038cf6 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:29 +0200 Subject: slirp: Explicitely mark host-forwarding sockets Mark sockets that describe host forwardings. This is required for their (and only their) proper deletion and for pretty-printing. Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- slirp/udp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slirp/udp.c') diff --git a/slirp/udp.c b/slirp/udp.c index 3722845cde..60fe754614 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -667,7 +667,7 @@ udp_listen(u_int32_t haddr, u_int hport, u_int32_t laddr, u_int lport, so->so_expire = 0; so->so_state &= SS_PERSISTENT_MASK; - so->so_state |= SS_ISFCONNECTED; + so->so_state |= SS_ISFCONNECTED | flags; return so; } -- cgit v1.2.3