From f932b6ce717e65687c3095e3e41a6c18972f996c Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Wed, 24 Jun 2009 14:42:29 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- slirp/socket.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'slirp/socket.h') diff --git a/slirp/socket.h b/slirp/socket.h index ac36aaa..2cf476c 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)); -- cgit v1.1