mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
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>
This commit is contained in:
parent
3c6a05803c
commit
f932b6ce71
5 changed files with 26 additions and 13 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue