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:46 -0500
commite4275686b0b4c630912ac196b234a87aa5d96d47 (patch)
tree41bd5aa90e6cf72369c34d7b037b15dd148ea3e7 /socket.h
parent244d07ca5b9cad1b17562ef042c39f1dc49d55b6 (diff)
downloadslirp-e4275686b0b4c630912ac196b234a87aa5d96d47.zip
slirp-e4275686b0b4c630912ac196b234a87aa5d96d47.tar.gz
slirp-e4275686b0b4c630912ac196b234a87aa5d96d47.tar.bz2
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 'socket.h')
-rw-r--r--socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index 7cb9314..d1c7cae 100644
--- a/socket.h
+++ b/socket.h
@@ -80,6 +80,8 @@ struct socket {
#define SS_PERSISTENT_MASK 0xf000 /* Unremovable state bits */
#define SS_HOSTFWD 0x1000 /* Socket describes host->guest forwarding */
+#define SS_INCOMING \
+ 0x2000 /* Connection was initiated by a host on the internet */
extern struct socket tcb;