summaryrefslogtreecommitdiff
path: root/slirp/socket.h
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:45 -0500
commit6dd5ffb661a4aec28c8296b1673abdf280038cf6 (patch)
tree372c11006fda26038578d0686c387d34b15d93d1 /slirp/socket.h
parentf932b6ce717e65687c3095e3e41a6c18972f996c (diff)
downloadqemu-6dd5ffb661a4aec28c8296b1673abdf280038cf6.tar.gz
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/socket.h')
-rw-r--r--slirp/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/slirp/socket.h b/slirp/socket.h
index 2cf476cb91..979b1915c1 100644
--- a/slirp/socket.h
+++ b/slirp/socket.h
@@ -72,6 +72,7 @@ struct socket {
#define SS_FACCEPTONCE 0x200 /* If set, the SS_FACCEPTCONN socket will die after one accept */
#define SS_PERSISTENT_MASK 0xf000 /* Unremovable state bits */
+#define SS_HOSTFWD 0x1000 /* Socket describes host->guest forwarding */
extern struct socket tcb;