aboutsummaryrefslogtreecommitdiff
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
commitf932b6ce717e65687c3095e3e41a6c18972f996c (patch)
tree44d74bc4164e3c43d2ac9a7b372b842cd8db2537 /slirp/socket.h
parentslirp: Bind support for host forwarding rules (diff)
downloadqemu-kvm-f932b6ce717e65687c3095e3e41a6c18972f996c.tar.gz
qemu-kvm-f932b6ce717e65687c3095e3e41a6c18972f996c.tar.bz2
qemu-kvm-f932b6ce717e65687c3095e3e41a6c18972f996c.zip
slirp: Prepare for persistent socket state flags
This prepares for adding flags to socket.so_state that must not be removed during the lifetime of a socket. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/slirp/socket.h b/slirp/socket.h
index ac36aaa4b..2cf476cb9 100644
--- a/slirp/socket.h
+++ b/slirp/socket.h
@@ -71,6 +71,8 @@ struct socket {
#define SS_FACCEPTCONN 0x100 /* Socket is accepting connections from a host on the internet */
#define SS_FACCEPTONCE 0x200 /* If set, the SS_FACCEPTCONN socket will die after one accept */
+#define SS_PERSISTENT_MASK 0xf000 /* Unremovable state bits */
+
extern struct socket tcb;
struct socket * solookup _P((struct socket *, struct in_addr, u_int, struct in_addr, u_int));