aboutsummaryrefslogtreecommitdiff
path: root/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
commit63c095805f5e355ad599b7134e6c5380a31eb6ee (patch)
tree098ac4a371fbf4572cf03ab272b4524bd27be07d /socket.h
parent5449e7627641fdede09e6e8585faabbb3d71e198 (diff)
downloadslirp-63c095805f5e355ad599b7134e6c5380a31eb6ee.zip
slirp-63c095805f5e355ad599b7134e6c5380a31eb6ee.tar.gz
slirp-63c095805f5e355ad599b7134e6c5380a31eb6ee.tar.bz2
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 'socket.h')
-rw-r--r--socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index 07eab1d..7cb9314 100644
--- a/socket.h
+++ b/socket.h
@@ -79,6 +79,7 @@ struct socket {
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;