diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:29 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:45 -0500 |
commit | 6dd5ffb661a4aec28c8296b1673abdf280038cf6 (patch) | |
tree | 372c11006fda26038578d0686c387d34b15d93d1 /slirp/udp.c | |
parent | slirp: Prepare for persistent socket state flags (diff) | |
download | qemu-kvm-6dd5ffb661a4aec28c8296b1673abdf280038cf6.tar.gz qemu-kvm-6dd5ffb661a4aec28c8296b1673abdf280038cf6.tar.bz2 qemu-kvm-6dd5ffb661a4aec28c8296b1673abdf280038cf6.zip |
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 <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/udp.c')
-rw-r--r-- | slirp/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index 3722845cd..60fe75461 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; } |